Template:Weekday before date
Revision as of 17:56, 9 November 2017 by 64.132.59.226 (talk) (Adding sections and removing obsolete reference to ''Template:Weekday after Julianday'')
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 November 23, 2024 is given by "{{Weekday before date|2024|November|23|Sunday}}" as "November 17, 2024".