Template talk:Day+x

Latest comment: 14 years ago by Schweiwikist

A week from today: 21 June

Two days from today: 16 June

Two days ago: 12 June

Note that this template doesn't work with leap years. That should be fixed. User:dbenbenn 20:29, 21 April 2006 (UTC)Reply

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)Reply

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)Reply