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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -