I want to get the CreateDate value from xml file the xml file is like this way.
<d:CreateDate m:type="Edm.DateTime">2012-03-18T15:11:30.403</d:CreateDate>
I created JSONObject as
JSONObject json=new WCFServices().getWhatsNew();//i get the json object WCFServices class.
JSONArray whatsnew= json.getJSONArray("d");
String CreateDate= c.getString("CreateDate");
if i try to print the value it gives me output as:
/Date(1330041600000)/
I want to get the value as like 2012-03-18T15:11:30.403
how to get it ?
Date/Date(1300....)/. First you need to get the exact value, then I think you need to use SimpleDateFormat class and then pass your timestamp to it it will make it to datetime.