Written by Sean Behan on Sun Jun 17th 2012

If you want to insert a datetime that matches the default mysql datetime type format use this

date('Y-m-d H:i:s');

Tagged with..
#date #datetime #MySQL #php #strftime #type #php

Just finishing up brewing up some fresh ground comments...