The local-dateTime() Function

Release 2.0 - ...

Syntax

  CopyCode image Copy Code
string local-dateTime()

Description

This function returns a lexical xsd:dateTime obtained as if by the following rules: the result of now() is converted to a local dateTime based on the user agent time zone information. If no time zone information is available, then the result of now() is returned.

Example

XML CopyCode image Copy Code
<xforms:output value="local-dateTime()">
   <xforms:label>Local DateTime : </xforms:label>
</xforms:output>

The above example returns e.g. "2011-12-16T15:37:23+01:00".

Specification

Link to the XForms specification: the local-dateTime() function.