views:

16

answers:

1

How can I use EXSLT extensions to subtract a date.

I see that there is a date-add function, but the EXSLT docs don't include any examples. I am trying to take the current date and subtract 1 month for example.

+1  A: 

To subtract, add a negative durations.

See details in the XML Schema specification.

date:add($now, '-P1M')
Oded