Convert String to java.util.Date
- by Vinayak.B
Hi Folks,
I storing the date to SQLite database in the format
d-MMM-yyyy,HH:mm:ss aaa
And again retrieving it with the same format, the problem now is, I am gettin every thing fine
exepth the Hour. Hour I am geting 00 every time, Here the print statement
String date--->29-Apr-2010,13:00:14 PM
After convrting Date--->1272479414000--Thu Apr 29 00:00:14 GMT+05:30 2010
Please where I am doing wrong.
Cheers,
Vinayak