PHP - Date & Timestamp Snippets
Aus Wikizone
Version vom 15. Oktober 2018, 16:22 Uhr von Steff (Diskussion | Beiträge)
Ein paar Beispiele
$today = strtotime(date("Y-m-d"));
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