I have a string :
$Value = 03/25/2014 10:15 AM
I would like to convert this to a mysql timestamp. When I use date('Y-m-d H:i:s', $Value) it does not work. Can someone please help me convert this? Thank you.
I have a string :
$Value = 03/25/2014 10:15 AM
I would like to convert this to a mysql timestamp. When I use date('Y-m-d H:i:s', $Value) it does not work. Can someone please help me convert this? Thank you.
date
needs a UNIX timestamp:
$Date = date('Y-m-d H:i:s', strtotime($Value));