This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: compare date value with 2 other ones
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] compare date value with 2 other ones
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sat, 7 Apr 2001 09:58:43 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> 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