DateTime::createFromFormat()
を使用します
:
$datetime = DateTime::createFromFormat("D F d, Y H:i a", 'Wed January 9, 2013 01:43 pm');
echo $datetime->format("Y-m-d H:i:s");
DateTime::createFromFormat()
を使用します
:
$datetime = DateTime::createFromFormat("D F d, Y H:i a", 'Wed January 9, 2013 01:43 pm');
echo $datetime->format("Y-m-d H:i:s");