The now() Function
Release 2.0 - ...
Syntax
Copy Code | |
---|---|
string now() |
Description
The now() function returns the current UTC date and time as a string value in the canonical XML Schema xsd:dateTime format. If time zone information is available, it is used to convert the date and time to UTC. If no time zone information is available, then the date and time are assumed to be in UTC.
Example
XML | Copy Code |
---|---|
<xforms:output value="now()"> <xforms:label>Current DateTime : </xforms:label> </xforms:output> |
The above example returns e.g. "2011-12-16T14:47:00Z".
Specification
Link to the XForms specification: the now() function.