.. _functx_days-in-month: ==================== functx:days-in-month ==================== Number of days in the month Description ~~~~~~~~~~~ The functx:days-in-month returns the number of days in the month of $date as an integer. The $date argument must be castable to xs:date, meaning that it must have the type xs:date or xs:dateTime, or be an xs:string or untyped value of the form YYYY-MM-DD. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - date:date() - the date Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:days-in-month(xs:date('2004-01-23')) - 31 * - functx:days-in-month(xs:dateTime('2004-02-15T12:00:13')) - 29 * - functx:days-in-month('2005-02-15') - 28 Depends On ~~~~~~~~~~ * :ref:`functx_is-leap-year`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_last-day-of-month`.