Use DateTime
‘s createFromFormat
$datetime = DateTime::createFromFormat('m/d/Y g:i a', '01/22/2013 2:33 pm');
echo $datetime->format('Y-m-d H:i:s');
solved Convert Normal Date to Timestamp [closed]
Use DateTime
‘s createFromFormat
$datetime = DateTime::createFromFormat('m/d/Y g:i a', '01/22/2013 2:33 pm');
echo $datetime->format('Y-m-d H:i:s');
solved Convert Normal Date to Timestamp [closed]