I can't get dates to parse with any accuracy. I have a date like this,
for example:
Fri May 25 07:58:46 GMT 2007
I am using a SimpleDateForma t with a format string of:
EEE MMM dd HH:MM:SS z yyyy
When I parse the date and print it back out, it thinks it was:
Tue Oct 25 02:00:00 CDT 2011
Which is not even remotely the same except for the "25".
Any tips on using the date parser? I guess I could just extract all the
fields into integers and make a date out of that, but it seems like
there is built-in functionality for this and I want it to work!
Thanks,
Jeremy
for example:
Fri May 25 07:58:46 GMT 2007
I am using a SimpleDateForma t with a format string of:
EEE MMM dd HH:MM:SS z yyyy
When I parse the date and print it back out, it thinks it was:
Tue Oct 25 02:00:00 CDT 2011
Which is not even remotely the same except for the "25".
Any tips on using the date parser? I guess I could just extract all the
fields into integers and make a date out of that, but it seems like
there is built-in functionality for this and I want it to work!
Thanks,
Jeremy
Comment