XQuery/Dates and Time
You want a quick reference page of sample functions that work with dates and times.
We will provide a sample list of XQuery expressions and their results.
This function returns the current date on the system that is executing the XQuery in W3C XML Schema date format:
Note that the "-05:00" is the offset from GMT of the server.
Current Date and TimeEdit
Note that default the letter 'T" separates the date and the time. The results after the decimal point are the number of milliseconds.
One Week AgoEdit
xs:date(current-dateTime()) - xs:dayTimeDuration('P7D')