If you are using XSLT 2.0, first construct an xs:date value (YYYY-MM-DD) by string-manipulation, then use format-date($date, '[F1]', (), 'ISO', ()) to get the day of the week (1=Monday, 7=Sunday).
With XSLT 1.0, you could look at the EXSLT date and time handling library.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|