0

我有一个 xsl,我想在其中显示默认到期日期(现在 + 1 个月)

我可以用这个显示当前日期(使用:xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date")

<xsl:variable name="currentdate" select="date:date()"/>
<!-- add one month to $currentdate-->
<xsl:value-of select="date:format-date($currentdate, 'MM/yy')"/>

我遇到的问题是我似乎无法确定当前日期的时间段。有谁知道该怎么做?

4

1 回答 1

1

看起来您错过了EXSLT - date:add

于 2009-08-27T15:31:29.873 回答