XQuery current-date Function
XQuery current-date Function
The current-date function is used to return the current date.
Syntax
current-date()
Example
XQuery Expression
let $date := current-date()
return
<results>
<date>{$date}</date>
</results>
Output
<results>
<date>2022-10-05+02:00</date>
</results>
note
Here +02:00 is the relative GMT time of the server.