how to split the time from datetime format in json parsing in android?
  
i need to split the time from datetime format using the json parsing .

{"events":{"event":[{"title":"Audi urban future","startTime":"2011-09-16 00:30:00","endTime":"2011-09-22 00:35:00","description":"test","image":"http://audi.smart-media.no/wp-content/uploads/2011/09/20110919130749-medium.jpg","latitude":45.73154,"longitude":4.8592365}]}}

Am able to parse the entire startTime and endTime from the given url but i need to get the time

My code is

		try {

			JSONObject es = json.getJSONObject("events");
			JSONArray event = es.getJSONArray("event");

			for (int i = 0; i < event.length(); i++) {
				HashMap<String, String> map = new HashMap<String, String>();
				JSONObject e = event.getJSONObject(i);
				map.put("id", String.valueOf(i));
				
				  map.put("startTime", "" + e.getString("startTime")
							+ "  @ olimpic Stadium");
				  String dateStringFromJSON = "/Date(126521670000-0700)/";
				//Remove prefix and suffix extra string information
				  String dateString = dateStringFromJSON.replace("/Date(", "").replace(")/", "");

				  // Split date and timezone parts
				  String[] dateParts = dateString.split("[+-]");
				  
				  
				map.put("title", "" + e.getString("title"));
				map.put("description", "" + e.getString("description"));
				map.put("image", "" + e.getString("image"));
				map.put("latitude", "" + e.getString("latitude"));
				System.out.println("latitude"+ e.getString("latitude"));
				mylist.add(map);
			}

		}

		catch (JSONException e) {
			Log.e("log_tag", "Error parsing data " + e.toString());
		}
please help me to solve this

Thanks in advance
Revathy s
how to split the time from datetime format in json parsing in android?
===

  
i need to split the time from datetime format using the json parsing .

{"events":{"event":[{"title":"Audi urban future","startTime":"2011-09-16 00:30:00","endTime":"2011-09-22 00:35:00","description":"test","image":"http://audi.smart-media.no/wp-content/uploads/2011/09/20110919130749-medium.jpg","latitude":45.73154,"longitude":4.8592365}]}}

Am able to parse the entire startTime and endTime from the given url but i need to get the time

My code is

		try {

			JSONObject es = json.getJSONObject("events");
			JSONArray event = es.getJSONArray("event");

			for (int i = 0; i < event.length(); i++) {
				HashMap<String, String> map = new HashMap<String, String>();
				JSONObject e = event.getJSONObject(i);
				map.put("id", String.valueOf(i));
				
				  map.put("startTime", "" + e.getString("startTime")
							+ "  @ olimpic Stadium");
				  String dateStringFromJSON = "/Date(126521670000-0700)/";
				//Remove prefix and suffix extra string information
				  String dateString = dateStringFromJSON.replace("/Date(", "").replace(")/", "");

				  // Split date and timezone parts
				  String[] dateParts = dateString.split("[+-]");
				  
				  
				map.put("title", "" + e.getString("title"));
				map.put("description", "" + e.getString("description"));
				map.put("image", "" + e.getString("image"));
				map.put("latitude", "" + e.getString("latitude"));
				System.out.println("latitude"+ e.getString("latitude"));
				mylist.add(map);
			}

		}

		catch (JSONException e) {
			Log.e("log_tag", "Error parsing data " + e.toString());
		}
please help me to solve this

Thanks in advance
Revathy s