开发者

Using EXSLT to subtract dates

开发者 https://www.devze.com 2023-01-05 10:10 出处:网络
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 s

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.


To subtract, add a negative durations.

See details in the XML Schema specification.

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

精彩评论

暂无评论...
验证码 换一张
取 消