PHP: Problem with strtotime
What's going on with strtotime here? $today = date('m.d.y H:i', time()); echo strtotime($today); It does not output anything... What's going on? strtotime can only parse certain formats , not any random assortment of numbers and letters. "m.d.y H:i" is not a format strtotime can parse. You'll need to parse that manually using, for example, strptime . Use DateTime::createFromFormat() if you know source format of date ('m.d.y H:i') in your example print DateTime::createFromFormat('m.d.y H:i',$date)->getTimestamp() Manual DateTime::createFromFormat DateTime::getTimestamp strtotime works with US