justinbriggs1 Posted January 11, 2009 Share Posted January 11, 2009 Hello, I've been trying to use some date functions and realized that the MySQL database I have been using is not storing dates as a timestamp as I configured, but instead as the DATETIME format, (2009-01-09 15:02:51). This would not bother me but the date() function can only handle timestamps, correct? How do you deal with a DATETIME format as this? Are there a standard set of functions to convert? Thanks, JW Link to comment Share on other sites More sharing options...
Synook Posted January 13, 2009 Share Posted January 13, 2009 You can use mktime() in PHP to convert the DATETIME into a Unix timestamp. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.