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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -