The local-date() Function

Release 2.0 - ...

Syntax

  CopyCode image Copy Code
string local-date()

Description

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

Example

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

The above example returns e.g. "2011-12-16".

Specification

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