Template:Weekday before date
Jump to navigation
Jump to search
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 June 2, 2024 is given by "{{Weekday before date|2024|June|2|Sunday}}" as "May 26, 2024".