xsl-list
[Top] [All Lists]

RE: [xsl] XSLT 2.0/XPath 2.0 Date arithmetic

2006-05-17 14:53:22
Dave Pawsons' FAQ covers date processing here for xslt2
http://www.dpawson.co.uk/xsl/rev2/dates.html.

Which version and processor are you using?

Karen

-----Original Message-----
From: cknell(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com] 
Sent: Wednesday, May 17, 2006 2:30 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] XSLT 2.0/XPath 2.0 Date arithmetic

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.

Thanks.

-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--