Template talk:Weekday in month

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

Remember mommy[edit]

Mother's Day is coming up ... May 13, 2012. --Uncle Ed (talk) 02:13, 26 February 2012 (UTC)[reply]

Daylight savings time[edit]

In New York, daylight savings time is observed from the second Sunday in March to the first Sunday in November.

  1. Daylight saving time began on March10, 2024
  2. Daylight saving time will end on November 3, 2024

Rewrite[edit]

I'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".

JIMp talk·cont 07:01, 29 May 2012 (UTC)[reply]

Documentation error[edit]

I think the documentation has a small error in its description for a negative n; it reads:

j = t + 7×(n + 1) − (wtw) mod 7

I think it should be:

j = t + 7×(n + 1) − (7 − wtw) mod 7

-- Michael Bednarek (talk) 06:30, 13 June 2012 (UTC)[reply]

Wednesday of the last *full week* of April[edit]

I 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)[reply]

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)[reply]

Perfect. Thanks so much. - 86.101.7.169 (talk) 09:37, 24 February 2014 (UTC)[reply]

Date formats[edit]

Right now the template displays mdy dates. Any way to get it to show dmy instead? howcheng {chat} 08:35, 19 May 2018 (UTC)[reply]