|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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. > > ************************************************************** > ***********
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








