Open main menu

Template:Weekday before date

Revision as of 03:41, 2 January 2019 by Johannes Axner (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Weekday before date|Y|M|D|W|S}} uses the optional date format string S (defaults to "F d, Y") to return the date of the first W (=Sunday, Monday, ..., Saturday) before the specified date with year Y, month M, and day of month D.

The first Sunday before September 21, 2024 is given by "{{Weekday before date|2024|September|21|Sunday}}" as "September 15, 2024".

See also