📜  laravel 获取星期日期 - PHP 代码示例

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

代码示例1
$now = Carbon::now();
$weekStartDate = $now->startOfWeek()->format('Y-m-d H:i');
$weekEndDate = $now->endOfWeek()->format('Y-m-d H:i');