Yes, -CW
and -CM
are the correct options to achieve your requirements.
CW
returns the last day of the current week. By adding a minus sign (-CW
), you get the first day of the current week, which is typically Monday.
CM
returns the last day of the current month. Using -CM
gives you the first day of the current month.
Sohail Ahmed
1,382
YUN ZHU
1,008
Super User 2025 Season 1
Mansi Soni
872