I am using this to store DATETIME in mysql
validation.php
//more code
$date = new DateTime("2012-01-01 23:59:59", new DateTimeZone('Europe/Paris'));
$dt = $date->format('Y-m-d H:i:s');
//and I am posting into my DATETIME field:
Insert...Value($dt)
1.. I get no errors but the date/time posted is 0000-00-00 00-00-00
What am I doing wrong?
2.. Is there a way to store date formatted as DD-MM-YYYY?