Template talk:Weekday in month
Is there a way to compute Election Day as "the day after the first Monday in November" or "the first Tuesday in the November which comes after a Monday also in November"?
In other words, can we add 1 to a date computed with this template? --Uncle Ed (talk) 14:59, 20 April 2010 (UTC)
Remember mommy
editMother's Day is coming up ... May 13, 2012. --Uncle Ed (talk) 02:13, 26 February 2012 (UTC)
Daylight savings time
editIn New York, daylight savings time is observed from the second Sunday in March to the first Sunday in November.
- Daylight saving time began on March10, 2024
- Daylight saving time ended on November 3, 2024
Rewrite
editI've rewritten the template to use parser functions instead of templates which call other templates which call other templates which call other templates which call other templates ... here are some extra improvements.
- Abbreviations (e.g. "2nd", "Sun", "Oct") are now accepted.
- Alphabetic and numberic inputs are possible for each parameter (regardless of order).
- The year can be specified as "last year" or "next year".
Documentation error
editI think the documentation has a small error in its description for a negative n; it reads:
- j = t + 7×(n + 1) − (wt − w) mod 7
I think it should be:
- j = t + 7×(n + 1) − (7 − wt − w) mod 7
Wednesday of the last *full week* of April
editI just added this template to Administrative Professionals' Day for most countries, but in North America, it is celebrated on the Wednesday of the last full week of April. Any way to calculate that with this template, or a combination of templates? Thanks. - 86.101.7.169 (talk) 16:16, 19 February 2014 (UTC)
- That depends on what they call "a full week"; in other words, which is the last day of a week. If that's a Sunday (as specified in ISO 8601), the Wednesday of the last full week is 4 days before the last Sunday in a month. The last Sunday in April 2014 falls on the 27 April, and the Wednesday before that falls on 23 April. The code to compute this for the general case should be
{{#expr:{{Weekday in month|{{CURRENTYEAR}}|04|0|-1}} - 4}}
which gives "24". -- Michael Bednarek (talk) 06:22, 20 February 2014 (UTC)
Perfect. Thanks so much. - 86.101.7.169 (talk) 09:37, 24 February 2014 (UTC)
Date formats
editRight now the template displays mdy dates. Any way to get it to show dmy instead? —howcheng {chat} 08:35, 19 May 2018 (UTC)