Template talk:Day+x

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

A week from today: 13 June

Two days from today: 8 June

Two days ago: 4 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]