Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 umbraco 在 xslt 文件中显示一年后的日期,如下所示:
<xsl:variable name="now" select="umbraco.library:CurrentDate()"/> <xsl:value-of select="umbraco.library:DateAdd($now, 'year', 1)"/>
value-of 标签输出今天的日期。如何让 DateAdd 为当前日期添加一年?
恒定的“年份”是错误的。它只需要'y'。
<xsl:variable name="now" select="umbraco.library:CurrentDate()"/> <xsl:value-of select="umbraco.library:DateAdd($now, 'y', 1)"/>