How do I get timestamp from e.g. 22-09-2008?
22-09-2008
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);