Name
days-from-date( ) — converts an XML Schema xs:date
into a signed whole number of days
Synopsis
Defined in: XForms 1.0 |
Parameters: string date (required) |
Return type: number |
This function computes a number of days relative to an epoch of
1970-01-01, and is most useful when two xs:date
values need to be compared.
This example returns -1:
days-from-date("1969-12-31")
Get XForms Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.