[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT 2.0/XPath 2.0 Date arithmetic

Subject: RE: XSLT 2.0/XPath 2.0 Date arithmetic
From: "Karen McAdams" <kamcadam@xxxxxxxxx>
Date: Wed, 17 May 2006 14:52:54 -0700
RE:  XSLT 2.0/XPath 2.0 Date arithmetic
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@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx]
Sent: Wednesday, May 17, 2006 2:30 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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@xxxxxxxxxx - email

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.