number days-from-date(string)
This function returns a whole number of days, according to the following rules:
- If the string parameter represents a legal lexical
xsd:dateorxsd:dateTime, the return value is equal to the number of days difference between the specified date or dateTime (normalized to UTC) and1970-01-01. - Hour, minute, and second components are ignored after normalisation.
- Any other input parameter causes a return value of NaN.
Examples:
days-from-date("2002-01-01")
returns 11688
days-from-date("1969-12-31")
returns -1

Recent comments
3 weeks 1 day ago
4 weeks 4 days ago
4 weeks 5 days ago
4 weeks 5 days ago
5 weeks 10 hours ago
5 weeks 19 hours ago
5 weeks 22 hours ago
5 weeks 22 hours ago
5 weeks 4 days ago
5 weeks 4 days ago