1use Carbon\Carbon;
2// Date = 7th of July 2021
3$month = Carbon::now()->format('M'); // July
4$month = Carbon::now()->format('m'); // 07
5$month = Carbon::now()->month; // 7
1use Carbon\Carbon;
2
3// if today is January 22, 2021
4Carbon::now()->format('M'); // "Jan"
5Carbon::now()->format('m'); // "01"
6Carbon::now()->month; // 1
7