php - strtotime to convert both date and time -
can advise how convert date "tuesday, 22 june, 2010 00:00" unix timestamp using strtotime()? need store hours , minutes , it's not clear if best done using strtotime. help!
due second ,
, strtotime()
not understand date/time format (remove , work properly).
if have static format date, using strptime()
or datetime::createfromformat()
more reliable, , allow other non-datetime strings in date present long you've defined them.
echo datetime::createfromformat("l, j f, y h:i","tuesday, 22 june, 2010 00:00")->format("c");
Comments
Post a Comment