functx:add-months
Adds months to a date
Description
Parameters |
Description |
---|---|
date:date() |
the date |
months:integer() |
the number of months to add |
Examples
XPath |
Results |
---|---|
functx:add-months(xs:date(‘2004-01-23’),1) |
2004-02-23 |
functx:add-months(xs:dateTime(‘2005-12-31T12:00:13’),2) |
2006-02-28 |
functx:add-months(‘2005-12-31’,-3) |
2005-09-30 |