[xsl] XSLT 2.0/XPath 2.0 Date arithmetic

Subject: [xsl] XSLT 2.0/XPath 2.0 Date arithmetic
From: cknell@xxxxxxxxxx
Date: Wed, 17 May 2006 17:29:37 -0400
Given a parameter, let's call it "today" in the form of this string "20060517", how do I create a variable, let's call it "tMinus1" such that it represents a day earlier than "20060517", that would be "20060516". So long as "$today" isn't the first day of a month, a simple subtraction and followed by a type cast that I don't grasp would do the trick.

What I'm looking for is guidance on date arithmetic.


Charles Knell
cknell@xxxxxxxxxx - email

Current Thread