carbon two day ago

Solutions on MaxInterview for carbon two day ago by the best coders in the world

showing results for - "carbon two day ago"
Marwane
01 Jan 2021
1$dt  =Carbon::now();
2
3echo $dt->subDay();                      // 2012-03-03 00:00:00
4echo $dt->subDays(29);