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

Computing Number of Days between Two Dates in XSLT 1.0

Subject: Computing Number of Days between Two Dates in XSLT 1.0
From: "Roger L. Cauvin" <roger@xxxxxxxxxx>
Date: Thu, 15 Feb 2007 10:10:40 -0600
 Computing Number of Days between Two Dates in XSLT 1.0
I am looking for an XSLT 1.0 template that computes the number of days
between two dates.  I don't want to reinvent the wheel, but I was unable to
find such a template browsing around in Google.  Can anyone post or point me
to one?

I know there is an EXSLT date:difference template that computes the duration
between two dates, but it can include years and months.  It is not a trivial
task converting these components of a duration to the number of days, as I
would have to take into account leap years and the different number of days
in each month.

--
Roger L. Cauvin
r o g e r @ c a u v i n . o r g
http://cauvin.blogspot.com

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.