Organizational Research By

Surprising Reserch Topic

convert date to timestamp in PHP?



asked Jul 17, 2015 in PHP by rajesh
0 votes
41 views



Related Hot Questions

1 Answer

0 votes

There is also strptime() which expects exactly one format:

$a = strptime('22-09-2008', '%d-%m-%Y');
$timestamp = mktime(0, 0, 0, $a['tm_mon']+1, $a['tm_mday'], $a['tm_year']+1900);
answered Jul 17, 2015 by rajesh

...