Re: [xsl] Date Range in XSL

Subject: Re: [xsl] Date Range in XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 16 Apr 2003 16:57:06 +0100
02/16/2003

as there are not 16 months in the year I'll assume that this
is dates in the rather bizarre  month-day-year order.

number(concat(substring(date,7),substring(date,1,2),substring(date,4,2))))
gives you (if I got the right indices)
numbers like 04/15/2003 --> 20030415  that you can compare with &lt; or
sort with xsl:sort etc.

Using ISO date format of 2003-04-15 would make processing easier in
XSLT2 (and XML schema) which have native support for ISO dates, and make
the file far more easily understandable in most parts of the world)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread