Comparing the Duration between two xs:dateTimes

Hi,
I’m trying to get the duration in days between a stored date and the current date and then check if these are greater than 10

I’ve tried subtracting one from the other, but this feature isn’t implemented. I’ve also tried adding an xs:duration() of 10 days to the stored date and seeing if the resulting date is greater than the current date, but again the feature isn’t implemented.

Does anyone have any ideas?

Ryan

Hi,

please see enclosed xquery that uses a user-defined function to add days to a date.

Regards,
Juliane.
datexquery.txt (1.38 KB)