Template:LastDayOfMonth/doc

From IxWiki
Revision as of 07:38, 18 November 2023 by >DB1729 (+ 2 categories)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

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

  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