Template talk:Day+x
Appearance
A week from today: 26 December
Two days from today: 21 December
Two days ago: 17 December
Note that this template doesn't work with leap years. That should be fixed. User:dbenbenn 20:29, 21 April 2006 (UTC)
- Fixed now, sort of. It still won't work if x is big (because it doesn't take into account whether next year is a leap year, etc. And this template doesn't give you the year of the resulting day. User:dbenbenn 21:32, 21 April 2006 (UTC)
The template ought to work okay as long as x < 59, and especially operating on a date that is still in the current year (as long as it's not currently a leap year). 60 days from any January 1 is February 29, so any higher-than-59 x will expose any leap-year bug. Schweiwikist (talk) 23:00, 20 August 2009 (UTC)