Template:Weekday before date/doc

Usage
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 (spelled out), and day of month D.

Examples
The first Sunday before July 29, 2024 is given by " " as "".

In the following table, 31 October 2010 is a Sunday.