模板:Weekday before date
外觀
{{Weekday before date|Y|M|D|W}} returns 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 9月 11, 2024 is given by "{{Weekday before date|2024|9月|11|Sunday}}" as "錯誤:時間格式不正確".
Optionally you can format the output using the fifth parameter. For example the first Sunday before 9月 11, 2024 is given by "{{Weekday before date|2024|9月|11|Sunday|d M y}}" as "錯誤:時間格式不正確".
See also Template:Weekday after Julianday and Template:Weekday after date.