Subject: RE: [xsl] Date Difference From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 19 Dec 2005 19:07:56 -0000 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Date Difference, andrew welch | Thread | Re: [xsl] Date Difference, Chris Burdess |
RE: [xsl] JDK 5 XSLTC handling of n, Michael Kay | Date | Re: [xsl] Date Difference, Chris Burdess |
Month |