Template:LastDayOfMonth: Difference between revisions
Appearance
←Created page with '{{date|{{#switch: {{{1|1}}} |{{#time: N | {{#expr:{{#time: t |{{{2|jan}}} {{{3|{{CURRENTYEAR}}}}}}}}} {{{2|jan}}} {{{3|{{CURRENTYEAR}}}}}}} = {{#expr:{{#time:...' |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 15:51, 7 June 2024
27 January 2025
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}}}} → 27 January 2024
- Last Thursday in June (this year) – {{LastDayOfMonth|4|jun}} → 26 June 2025