是否可以在 XSLT 中获取上个月的最后一天?我发现这个函数:http://www.xsltfunctions.com/xsl/functx_last-day-of-month.html但我不知道如何使用它来获取上个月的数据。
最佳答案
使用:
current-date()
- xs:dayTimeDuration(concat('P', day-from-date(current-date()), 'D'))
这会产生(在 2012 年 5 月的任何一天评估时):
2012-04-30-07:00
关于xslt - XSLT 中的上个月最后一天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10483246/