Dbase debug_report date int getval date date date Ymd strtotime date d

1
2
3
4
5
6
7
Dbase::$debug_report = [];
$date = (int) getval('date');
// 1
$date = date('Ymd', strtotime($date)) == $date ? $date : date('Ymd');
$time = strtotime($date);