Template:AddDays: Difference between revisions
Jump to navigation
Jump to search
imported>ZachPruckowski (put in test version - appears to be working) |
imported>ZachPruckowski No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | |||
{{#ifexpr: {{CURRENTDAY}} + {{{1}}} > {{DaysInMonth|{{CURRENTMONTH}} }} | {{#ifexpr: {{CURRENTDAY}} + {{{1}}} > {{DaysInMonth|{{CURRENTMONTH}} }} | ||
|{{#ifexpr: {{CURRENTMONTH}} = 12 | |{{#ifexpr: {{CURRENTMONTH}} = 12 | ||
Line 6: | Line 7: | ||
|{{CURRENTYEAR}}{{CURRENTMONTH}}{{AddDays/LeadZero|{{#expr: {{CURRENTDAY}} + {{{1}}} }} }} | |{{CURRENTYEAR}}{{CURRENTMONTH}}{{AddDays/LeadZero|{{#expr: {{CURRENTDAY}} + {{{1}}} }} }} | ||
}} | }} | ||
</includeonly> | |||
<noinclude> | |||
This template adds a set number of days to the current date and returns the new date. | |||
Useage: <nowiki>{{AddDays|N}}</nowiki> where N is a number of days less than about 28 (only handles 1 month increment) | |||
<!--{{CURRENTYEAR}}{{CURRENTMONTH}}{{#expr: {{CURRENTDAY}} + {{{1}}} }}--!> | <!--{{CURRENTYEAR}}{{CURRENTMONTH}}{{#expr: {{CURRENTDAY}} + {{{1}}} }}--!> | ||
</noinclude> |
Revision as of 10:23, 19 April 2007
This template adds a set number of days to the current date and returns the new date.
Useage: {{AddDays|N}} where N is a number of days less than about 28 (only handles 1 month increment)