Template:Monthoffset
Revision as of 06:15, April 9, 2008 by Koavf (talk | contribs) (<noinclude>Category:Calendar templates</noinclude>)
January
Documentation
This template calculates the month that will result from a given positive or negative offset in days. See also {{dayoffset}} to calculate the day of the month.
Examples:
English | Template | Result |
---|---|---|
Today - 30 | {{monthoffset|-30}} | December |
Today + 2 | {{monthoffset|2}} | January |
Today + 30 | {{monthoffset|30}} | January |
Combination with {{dayoffset}}:
English | Template | Result |
---|---|---|
Today - 30 | {{monthoffset|-30}} {{dayoffset|-30}} | December
19
|
Today + 2 | {{monthoffset|2}} {{dayoffset|2}} | January
20
|
Today + 30 | {{monthoffset|30}} {{dayoffset|30}} | January
17
|