WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Table Sort Date, PForeman, August 20, 2003

Subject: Table Sort Date From: PForeman Date: August 20, 2003

I'm sorry but not to clever with this type of stuff.
I am using the Table Sort using the type=Date
The dates I am sorting are dd/mm/yyyy

I have changed the code to this:

case "Date":
   var parts = sText.split("/");
   var d = new Date();
   d.setDate(parts[0]);
   d.setMonth(parts[1]);
   d.setYear(parts[2]);
   return d.valueOf(); 

But it is still sorting wrong:-

31/07/2003
30/07/2003
05/08/2003
02/08/2003

And not:-

05/08/2003
02/08/2003
31/07/2003
30/07/2003

Help Please




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX