[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Date Range in XSL

Subject: Re: Date Range in XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 16 Apr 2003 16:57:06 +0100
xsl sort date range
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
  • Date Range in XSL
    • nshah - Wed, 16 Apr 2003 11:34:15 -0400 (EDT)
      • David Carlisle - Wed, 16 Apr 2003 11:53:10 -0400 (EDT) <=
      • <Possible follow-ups>
      • Avula, Raj - Wed, 16 Apr 2003 11:57:36 -0400 (EDT)
      • Avula, Raj - Wed, 16 Apr 2003 13:01:17 -0400 (EDT)
      • nshah - Wed, 16 Apr 2003 13:24:29 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.