current-date function

The fn:current-date function returns the current date in the implicit time zone of UTC.

Syntax

Read syntax diagramSkip visual syntax diagramfn:current-date()

Returned value

The returned value is an xs:date value that is the current date.

Example

The following function returns the current date.
fn:current-date()

If this function were invoked on December 2, 2005, the returned value would be 2005-12-02Z.