Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Calculating months between two dates

From: Ryan Puddephatt <rpuddephatt@------------>
To:
Date: 6/1/2007 6:52:00 PM
Hi,

   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') - 
current-date())



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



Thanks



Ryan
--

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent