📅  最后修改于: 2022-03-11 14:54:58.604000             🧑  作者: Mango
$day = '2019-10-30 18:29:19';
$date = Carbon::createFromFormat('Y-m-d H:i:s', $day);
$date->subDay(); // Subtracts 1 day
echo $date->format('Y-m-d h:i:s');