Template:LastDayOfMonth
Appearance
29 January 2024
Usage
[edit]Returns the last specified day of the specified month of the specified year
Parameters are:|1=day of week
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
|2=month
- 3 characters, lower case
- jan
- feb
- mar
- apr
- may
- jun
- jul
- aug
- sep
- oct
- nov
- dec
- 3 characters, lower case
|3=year
- 4 digits, default to current year
Examples
[edit]- Last Saturday in January last year – {{LastDayOfMonth|6|jan|[[#expr:{{CURRENTYEAR}}-1}}}} → 28 January 2023
- Last Thursday in June (this year) – {{LastDayOfMonth|4|jun}} → 27 June 2024