Combine data e hora no PHP
$combinedDT = date('Y-m-d H:i:s', strtotime("$date $time"));
^ ^
Said HR
$combinedDT = date('Y-m-d H:i:s', strtotime("$date $time"));
^ ^
$start_y = 2020;
$start_m = 11;
$start_d = 23;
$date = $start_y . "-" . str_pad($start_m, 2, "0", STR_PAD_LEFT) . "-" . str_pad($start_d, 2, "0", STR_PAD_LEFT);