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

Re: dd mmm yyyy Date converted to number - attempt to

Subject: Re: dd mmm yyyy Date converted to number - attempt to sort using variable - unable to do so
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Sun, 28 Oct 2001 15:18:02 +0100
dd mmm yyyy
On Sun, Oct 28 '01 at 11:33, mark.clare@xxxxxxxxxxxx wrote:
> I have a list of items which contain a date in the format dd mmm yyyy.  I
> want to sort these entries by date.  To do so I have used the following
> code:
> 
> [ ... lot of stuff deleted ... ]
> 
> Can anyone advise how I can utilise the variable in the sort function?
No, sorry.

But why don't you use substring() to converte your dd mm yyyy string to
yyyymmdd and sort on this variable

Oops, I just realised you've mmm. In this case it is not as easy, but
you could use a pure XSLt based lookup to converte your mmm into mm
first, and than use substring to rearange your date.
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.

Attachment: pgp00016.pgp
Description: PGP signature

Current Thread

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.