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

RE: counting dates

Subject: RE: counting dates
From: "Dariusz Borowski" <d.borowski@xxxxxx>
Date: Mon, 06 Jun 2005 23:44:21 +0200
days between dates algorithm
Hi!

Thanks for the answer, but that is what I'm looking for, cuz I need a difference in days between two dates.  Do you have an example?

Thanks,
Dariusz


xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 06.06.05 14:05:36:
> 
> In XSLT 2.0 you can subtract two dates to get a difference in days (as a
> dayTimeDuration) but not a difference in months.
> 
> The reason that difference-in-months wasn't included in 2.0 was difficulty
> in finding an acceptable algorithm. 2005-01-31 plus one month gives
> 2005-02-28, but 2005-02-28 minus one month gives 2005-01-28. So should the
> difference between 2005-01-31 and 2005-02-28 be one month or zero months?
> 
> Michael Kay
> http://www.saxonica.com/
> 
> 
> 
> > -----Original Message-----
> > From: Dariusz Borowski [mailto:d.borowski@xxxxxx] 
> > Sent: 06 June 2005 12:45
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  counting dates
> > 
> > Hi There!
> > 
> > I'm new hear and I would like to know, if anybody knows how 
> > to count date.
> > 
> > I need delta-dates of two dates.
> > 
> > The date-format is as follow: "2005-05-01" and "2005-06-01"
> > 
> > Now we have here a delta of "1 month".
> > 
> > How can I get a result like this in xsl???
> > 
> > Thanks!
> > Dariusz
> > __________________________________________________________
> > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
> > weltweit telefonieren! http://freephone.web.de/?mc=021201
> 


__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201

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.