xslt for a date 90 days older than current date -


earlier have 1 field need current date, case have used following.

<value><xsl:value-of select="java:format(java:java.text.simpledateformat.new('dd-mm-yyyy'), java:java.util.date.new())"/></value> 

now, have requirement have date not older 90 days today. please suggest me can done basing above code or have other way of doing using xslt?

in case using xslt 2.0 can use this:

<xsl:value-of select="current-date() - xs:daytimeduration('p90d')" xmlns:xs="http://www.w3.org/2001/xmlschema"/> 

Comments

Popular posts from this blog

PHP Error "Undefined index" -

C# List<> to xml -

javascript - Concatenate two fields in one in CRM 2011 -