Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i increment date using xpath?

Tags:

xpath

i need to increment current date by 7 days and i'm wondering if it's possible to do that using a xpath function.

thanks !!

like image 222
achraf Avatar asked Oct 21 '25 13:10

achraf


1 Answers

It is possible in XPATH 2.0. There are a number of date functions.

current-date() + xs:dayTimeDuration('P7D')
like image 94
Mads Hansen Avatar answered Oct 23 '25 06:10

Mads Hansen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!