i am using bootstrap date time picker to pick date and time . its giving me output "21 December 2012 - 03:45 PM" now i want to store it on MySQL database my problem is how can i store this string to MySQL data column (data type = date time).
here i using this code but its not working
$s = '21 December 2012 - 03:45 PM';
$date = strtotime($s);
echo date('d/M/Y:H:i:s', $date);
i want to store this string to mysql datbase in date time format. extract same string on sql query run
thank you