How can I convert a time string like this:
30/7/2010
to a UNIX timestamp?
I tried strtotime()
but I get a empty string :(
How can I convert a time string like this:
30/7/2010
to a UNIX timestamp?
I tried strtotime()
but I get a empty string :(
PHP >= 5.3:
$var = DateTime::createFromFormat('j/n/Y','30/7/2010')->getTimestamp();