将“DD / MM / YYYY h:m”转换为时间戳

I need to convert DD/MM/YYYY h:m eg 21/12/2015 17:14 this date to timestamp format using php and store it in mysql.

I have tried strtotime() and some other functions but it's not working. Can any one help me on this. I'm using datepicker to generate the value for date time

Use following code to convert "DD/MM/YYYY h:m" into timestamp

$dateString = "21/12/2015 17:14";
$timestamp = strtotime(str_replace("/", "-", $dateString));

you can use DateTime class:

$dateStr = '21/12/2015 17:14';
echo $timestamp = \DateTime::createFromFormat('d/m/Y H:i', $dateStr)->getTimestamp();