This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
FW: compare date value with 2 other ones
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: FW: [xsl] compare date value with 2 other ones
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 10 Apr 2001 10:47:33 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
-----Original Message-----
From: Michael Kay [mailto:mhkay@iclway.co.uk]
Sent: 07 April 2001 09:59
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] compare date value with 2 other ones
>
> Take the current date with this format: 05/04/2001
>
Since your email address is in Belgium I assume this is dd/mm/yyyy rather
than mm/dd/yyyy; but really, it would be far better to use ISO date format
(yyyy-mm-dd) and then the problem disappears.
So a suggestion: first convert your document to use ISO format dates (which
is easy using XSLT, or you could do it in a SAX filter before the XSLT
transformation), and then manipulate the data in this form.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list