Difference between revisions of "Template:Weekday after date/doc"
Jump to navigation
Jump to search
en>Johnuniq (simulate error message to remove page from Category:Pages with parser function time errors) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:41, 2 January 2019
This is a documentation subpage for Template:Weekday after date. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{Weekday after 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) after the specified date with year Y, month M (spelled out), and day of month D.
Examples
The first Sunday after November 23, 2024 is given by "{{Weekday after date|2024|November|23|Sunday}}" as "November 24, 2024".
In the following table, 25 May 2014 is a Sunday.
Syntax | What it looks like | Notes |
---|---|---|
{{Weekday after date|2014|May|25|Monday|d F Y}}
|
26 May 2014 | |
{{Weekday after date|2014|May|25|Tuesday|d F Y}}
|
27 May 2014 | |
{{Weekday after date|2014|May|25|Wednesday|d F Y}}
|
28 May 2014 | |
{{Weekday after date|2014|May|25|Thursday|Y-m-d}}
|
2014-05-29 | |
{{Weekday after date|2014|May|25|Friday|Y-m-d}}
|
2014-05-30 | |
{{Weekday after date|2014|May|25|Saturday|d F Y}}
|
31 May 2014 | |
{{Weekday after date|2014|May|25|Sunday|d F Y}}
|
01 June 2014 | When a starting date falls on the specified weekday, the resulting date will be one week later. |
{{Weekday after date|2014|05|25|Thursday|d F Y}}
|
Error: Invalid time. | Numeric month results in error |
See also