Welcome Guest, Not a member yet? Register   Sign In
About strtotime
#1

Hi;

Is this valid?

PHP Code:
$date date("jS F, Y g:i a"strtotime("Wednesday, February 19th 2015, 7:36 pm")); 

By valid I mean can strtotime recognize the given format and convert properly?

Tests are working fine. Just confirming.

Thanks
Reply
#2

Well... You can read more on PHP manual...
Reply
#3

Even if it works, better use DateTime::createFromFormat()->format()
Reply




Theme © iAndrew 2016 - Forum software by © MyBB