mapmyeve Posted January 10, 2009 Share Posted January 10, 2009 Hello, I am a newbie and wanted to find out how to convert "February 26, 2009" to a mysql date format so that I can insert in a database. Any help will be appreciated. Link to comment https://forums.phpfreaks.com/topic/140315-date-conversion-to-mysql-format/ Share on other sites More sharing options...
Rushyo Posted January 10, 2009 Share Posted January 10, 2009 http://uk.php.net/manual/en/function.strtotime.php This should turn it into a unix timestamp (an integer value, based on the number of seconds since 1970 IIRC). Perfect for storage and use by just about anything. date() accomplishes the reverse. Link to comment https://forums.phpfreaks.com/topic/140315-date-conversion-to-mysql-format/#findComment-734313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.