xslt for a date 90 days older than current date

I have used the following to get the current date.

<value><xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('dd-MM-yyyy'), java:java.util.Date.new())"/></value>

Now, I have a requirement where I have to get a date that is not older than 90 days from today. Please help me out to get it done using xslt?


In case you are using XSLT 2.0 you can use this:

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