functx:day-of-week-name-en
The name of the day of the week, from a date, in English
Description
The functx:day-of-week-name-en function calculates the day of the week of $date. It returns the English name of the day, e.g. “Sunday”, “Monday”, etc.
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:string() |
the date |
Examples
XPath |
Results |
---|---|
functx:day-of-week-name-en(xs:date(‘2004-11-04’)) |
Thursday |
functx:day-of-week-name-en(‘2004-11-04’) |
Thursday |