functx:date
Construct a date from a year, month and day
Description
The functx:date function constructs an xs:date value from arguments representing the year, month and day. The arguments can have any type that can be cast to xs:integer. If the combination does not result in a valid date (e.g. the day is 32 or the month is 13), an error is raised.
Parameters |
Description |
---|---|
year:date() |
the year |
month:date() |
the month |
day:date() |
the day |
Examples
XPath |
Results |
---|---|
functx:date(2006,6,12) |
2006-06-12 |
functx:date(‘2006’,’06’,’12’) |
2006-06-12 |