aspose file tools
The moose likes XML and Related Technologies and the fly likes Display and sorting by a date type field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Display and sorting by a date type field" Watch "Display and sorting by a date type field" New topic
Author

Display and sorting by a date type field

Alex Iordache
Ranch Hand

Joined: Mar 13, 2001
Posts: 62
Is there a XSL/XSLT function that enables me to format a date field (I get the date field fro mADO-XML stream in the format :yyyy-mm-dd, and I want to display it as : dd/mm/yy for example).
How can I sort elemnts according to a date property (I saw that xsl:sort works in number/text modes only)
Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
Any date in the format yyyy-mm-dd should be able to be sorted by character. in ASCII, 9>8>7>6>5>4>3>2>1>0, so for instance:
1999-03-21 will be greater than 1999-02-28
Brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display and sorting by a date type field
 
Similar Threads
Date formatting in java.
java.sql.Date
date format
Date Problem
datefiled in dd-mm-yyyy format