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

RE: Date Difference

Subject: RE: Date Difference
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 19 Dec 2005 19:07:56 -0000
xslt date difference
XSLT 2.0 allows you to do a date difference: but first you need to convert
the dates into ISO format - which is easy enough using the XPath 2.0
tokenize() function.

If you can't use XSLT 2.0 you could look to see if there's anything at
www.exslt.org

Michael Kay
http://www.saxonica.com 



> -----Original Message-----
> From: thomas.maciejewski@xxxxxxxxx 
> [mailto:thomas.maciejewski@xxxxxxxxx] 
> Sent: 19 December 2005 17:54
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Date Difference
> 
> Is there an easy way to do a date difference in XSLT.
> 
> I basically have two strings :   "9/11/2004"  and "10/25/2005"
> and would like to produce the number of days between the two.
> 
> If that is too difficult it would be OK for me to know if one 
> is equal to
> the other ... or maybe if one is equal to, less than or 
> greater than the
> other.
> 
> Regards,
> 
> 
> Tom Maciejewski
> 
> **************************************************************
> ***********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited. 
> E-mails are susceptible to alteration.   
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates 
> shall be liable for the message if altered, changed or falsified. 
> 
> **************************************************************
> ***********

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.