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