.. _functx_add-months: ================= functx:add-months ================= Adds months to a date Description ~~~~~~~~~~~ .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - date:date() - the date * - months:integer() - the number of months to add Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **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 Depends On ~~~~~~~~~~ * :ref:`functx_yearMonthDuration`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_next-day`.