Trying to calculate day of the week number from date. Found some examples in the internet, but instead of day of the week number i see this : NaN.
The following stylesheet:
XSLT 1.0
when applied to your input example:
2013-01-01 2013-05-24 2013-12-25 1957-07-13 1776-07-04
will return the following result:
25364
Note:
The main problem with your attempt is this:
Your input has dates, not date-times, and they do not contain "T".