Template:LastDayOfMonth/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:LastDayOfMonth. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
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
- 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