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

RE: Re: Template to return number of days

Subject: RE: Re: Template to return number of days
From: cknell@xxxxxxxxxx
Date: Sat, 31 Jan 2004 10:47:57 -0500
datetime_lib.xsl
Thanks. I had started to deconstruct the template that returns the xs:duration string in order to use the guts for my purposes, but this saves a lot of trouble.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Sent:     Sat, 31 Jan 2004 08:53:07 +0100
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   Re: Template to return number of days

Use the "date-diff" template from the datetime_lib.xsl library that comes
with Marrowsoft XSelerator (you could just download the trial version of
XSelerator).

For more examples how to use this library see the Calendar application I
wrote two years ago at TopXML.com:
    http://www.topxml.com/code/default.asp?p=3&id=v20020711152545

Cheers,

Dimitre Novatchev.
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html

<cknell@xxxxxxxxxx> wrote in message
news:B0020467523@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm looking for a template that will return the number of days between two
dates (CCYY-MM-DD format). I've been through the EXSLT library but can only
find one that returns an xs:duration format. I'm sure that format is useful
to someone, somewhere, but since months may have 28, 29, 30, or 31 days, a
format telling me that there are 3 months and two days between two dates
doesn't tell me anything about the number of days.
>
> Does anyone have a pointer for me?
>
> -- 
> Charles Knell
> cknell@xxxxxxxxxx - email
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.