Index ¦ Archives ¦ Atom

Adjusting a Date in XQuery

One can adjust a date field in XQuery by adding or subtracting a duration. This specifically subtracts a day from the current date:

fn:current-date() - xs:dayTimeDuration("P1D")

© Steve Spigarelli. Built using Pelican. Theme by Giulio Fidente on github.