Template:AddDays: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>ZachPruckowski
(create template - still need to do that whole wraparound thing.)
 
imported>Caesar Schinas
(Simpler code (but is this template needed anyway?))
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CURRENTYEAR}}{{CURRENTMONTH}}{{#expr: {{CURRENTDAY}} + 3}}
<includeonly>{{#time:Ymd|+ {{{1}}} days}}</includeonly>
 
<noinclude>
<!--
This template adds a set number of days to the current date and returns the new date.<br />
 
Usage: {{tlc|AddDays|N}}, where N is a number of days.
{{#ifeq:{{CURRENTMONTH}} | 2 |  {{#ifeq: {{#expr: {{CURRENTYEAR}} mod 4}} | 0 | {{#if:{{ #expr: {{CURRENTDAY}} >= 27 }} | {{CURRENTYEAR}} | }} | }}
</noinclude>
| {{}} }}
 
--!>

Latest revision as of 08:50, 15 June 2009


This template adds a set number of days to the current date and returns the new date.
Usage: {{AddDays|N}}, where N is a number of days.