[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Template to return number of days

Subject: [xsl] Template to return number of days
From: cknell@xxxxxxxxxx
Date: Fri, 30 Jan 2004 14:05:51 -0500

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

Current Thread