Jump to content

Template:LastDayOfMonth/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Returns the last specified day of the specified month of the specified year
Parameters are:
|1=day of week

  1. Monday
  2. Tuesday
  3. Wednesday
  4. Thursday
  5. Friday
  6. Saturday
  7. Sunday

|2=month

3 characters, lower case
  • jan
  • feb
  • mar
  • apr
  • may
  • jun
  • jul
  • aug
  • sep
  • oct
  • nov
  • dec

|3=year

4 digits, default to current year

Examples

[edit]
  1. Last Saturday in January last year – {{LastDayOfMonth|6|jan|[[#expr:{{CURRENTYEAR}}-1}}}} → 28 January 2023
  2. Last Thursday in June (this year) – {{LastDayOfMonth|4|jun}} → 27 June 2024