I have a GMT
formatted String value in yyyy-MM-dd HH:mm:ss.SSS zzz
eg: 2013-07-29 06:35:40:622 GMT.
I want to get it as a date object and convert it into IST
time zone.
I did smthng like this... **
String GMT = "2013-07-29 06:35:40:622 GMT";
DateFormat utcDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS zzz");
utcDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
try {
utcDateFormat.parse(GMT);
} catch (ParseException e) {
e.printStackTrace();
}**
bt gettng error as java.text.ParseException: Unparseable date: "2013-07-29 06:35:40:622 GMT"