Difference between revisions of "Template:Weekday before date"

From Nordic Larp Wiki
Jump to navigation Jump to search
(Adding sections and removing obsolete reference to ''Template:Weekday after Julianday'')
(No difference)

Revision as of 18:56, 9 November 2017

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 22, 2024 is given by "{{Weekday before date|2024|September|22|Sunday}}" as "September 15, 2024".

See also