📜  结合日期时间php代码示例

📅  最后修改于: 2022-03-11 14:54:05.900000             🧑  作者: Mango

代码示例1
$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);