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

Re: Calculating months between two dates

Subject: Re: Calculating months between two dates
From: "Eric Larson" <ionrock@xxxxxxxxx>
Date: Fri, 1 Jun 2007 14:22:46 -0500
Re:  Calculating months between two dates
Exslt has some date facilities (http://exslt.org/date/index.html).

Also depending on your processor, it shouldn't be that hard to write
an extension. For example in 4Suite, I wrapped a few select functions
from the dateutils package without much trouble. Good luck!



On 6/1/07, Ryan Puddephatt <rpuddephatt@xxxxxxxxxxxx> wrote:
    I want to know if it is possible to calculate the number of months
between two dates. For example xs:duration(xs:date('2009-09-23') -

 From this I get a result in days, is there a way to convert this or
change its result?



Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
West Lothian
EH54 7DP

e> rpuddephatt@xxxxxxxxxxxx <mailto:rpuddephatt@xxxxxxxxxxxx>
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com <http://www.teleflex.com>

"Measuring programming progress by lines of code is like measuring
aircraft building progress by weight." - /Bill Gates/
"If you lie to the compiler, it will get its revenge." - /Henry Spencer/
"It's hard enough to find an error in your code when you're looking for
it; it's even harder when you've assumed your code is error-free." -
/Steve McConnell/
"If builders built buildings the way programmers wrote programs, then
the first woodpecker that came along would destroy civilization." -
/Gerald Weinberg/

Current Thread


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.
First Name
Last Name
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.