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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -