PHP - Date & Timestamp Snippets

Aus Wikizone
Wechseln zu: Navigation, Suche

Datum (String) in Timestamp umwandeln

For recieving page of today, you would have to create a start and end time range and use them in the selector.

$start = strtotime( date('Y-m-d') . " 00:00:00");
$end = strtotime( date('Y-m-d') . " 23:59:59");

haven't tested it but should work along these lines