Convert String to java.util.Date

Posted by Vinayak.B on Stack Overflow See other posts from Stack Overflow or by Vinayak.B
Published on 2010-04-29T05:48:12Z Indexed on 2010/04/29 5:57 UTC
Read the original article Hit count: 445

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about date