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.
Parameters |
Description |
---|---|
date:date() |
the date |
Examples
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 |