Converting string to datetime
Posted
by duder
on Stack Overflow
See other posts from Stack Overflow
or by duder
Published on 2010-06-08T10:07:51Z
Indexed on
2010/06/08
10:12 UTC
Read the original article
Hit count: 270
I'm trying to enter a date in a mysql table
`ssdate` datetime
The function that produces the date can output it in 3 formats:
1276142400000
Thu Jun 10 00:00:00 GMT-0400 2010
Fri Jun 4 2010
I'm wondering which of these would be easiest to convert to this field format?
Since I'm trying to save only the date, is there a better option than datetime
that would work with one of these output formats?
© Stack Overflow or respective owner