Template:Monthoffset
March
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}} | February |
| Today + 2 | {{monthoffset|2}} | March |
| Today + 30 | {{monthoffset|30}} | March |
Combination with {{dayoffset}}:
| English | Template | Result |
|---|---|---|
| Today - 30 | {{monthoffset|-30}} {{dayoffset|-30}} | February
31
|
| Today + 2 | {{monthoffset|2}} {{dayoffset|2}} | March
4
|
| Today + 30 | {{monthoffset|30}} {{dayoffset|30}} | March
1
|