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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.