use mysql compatible date format

I haven't fully tested this, but it seems to work better than the original 5.6.3 code.

See this page for more details
http://www.concrete5.org/index.php?cID=607946&editmode=