Template:Date after date

From mtgpq wiki
Revision as of 09:32, 1 April 2019 by Volrak (talk | contribs) (Created page with "<noinclude> ==Usage== Returns a comma-separated date string of Year,Month,Day, a given number of days after a given start-of-week date. The first three parameters are the yea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage

Returns a comma-separated date string of Year,Month,Day, a given number of days after a given start-of-week date.

The first three parameters are the year, month name, and day number of a date which is taken as the start of a week.

The fourth parameter is a number from 1 to 7 representing the day of the week.

See also Template:Day after date.

Example

The following shorthand:

{{Date after date|2019|January|28|5}}
{{Date after date|2019|February|28|5}}
{{Date after date|2019|March|28|5}}
{{Date after date|2019|April|28|5}}
{{Date after date|2019|May|28|5}}
{{Date after date|2019|June|28|5}}
{{Date after date|2019|July|28|5}}
{{Date after date|2019|August|28|5}}
{{Date after date|2019|September|28|5}}
{{Date after date|2019|October|28|5}}
{{Date after date|2019|November|28|5}}
{{Date after date|2019|December|28|5}}

{{Date after date|2020|February|28|5}}
{{Date after date|2100|February|28|5}}
{{Date after date|2400|February|28|5}}

Produces:


2019,February,1

2019,March,4

2019,April,1

2019,May,2

2019,June,1

2019,July,2

2019,August,1

2019,September,1

2019,October,2

2019,November,1

2019,December,2

2020,January,1


2020,March,3

2100,March,4

2400,March,3