开发者

Using EXSLT to subtract dates

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜