I came across a problem today where I needed to convert a date in an MS Access Database to a MySQL timestamp using PHP. The solution was pretty easy, but took some thinking through. Here is the answer to save you some time if you need it. Get the date from your MS Access database. If you're using PHP to do this, you'll likely use the odbc_exec($connection, $query) function and the odbc_fetch_array() function. Convert the MS Access date format into a UNIX Timestamp using PHP's strtotime() … [Read more...]
PHP Date
Convert MS Access Date to Unix Timestamp to MySQL Timestamp
June 9, 2011 By Aaron Brown
Filed Under: Web Development Tagged With: database, handling dates, MS Access, MySQL, MySQL Timestamp, PHP, PHP Date, Unix Timestamp