07-21-2009 08:17 PM
I am trying to extract date by parsing string,
Date eventDate = new Date(HttpDateParser.parse("2009-07-21T21:30:30-07"
SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd-yyyy hh:mmaa");
String temp = dateFormat.format(eventDate);
My device is set to Pacific time (-8)
on running, I get temp as 07-21-2009 2:30 PM
Date is fine, but how/why is offset of 7hr in hours? i am expecting 21:30 as hr.
How can this be rectified?
Solved! Go to Solution.
07-22-2009 01:42 AM
I amhaving exactly the same problem as in this thread,
The solution provided is not working. Please help!!