I was trying to add to the date parser in tablesorter to be able to
handle dates formated like DD-MMM-YY  (04-SEP-08), but i havent been
successful.


In the shortDate parser i tried adding the following..
...


var months = {Jan:1,Feb:2,Mar:3,Apr:4,May:5,Jun:6,Jul:7,Aug:8,Sep:
9,Oct:10,Nov:11,Dec:12};

then further down in the if/else if statement i added this...

} else if(c.dateFormat == "dd-mmm-yy") {
                                s = 
s.replace(/(\d{1,2})[\/\-](months[[A-Za-z]{1,3}])[\/\-]
(\d{2})/, "$1/$2/$3");


If anybody can assist me in this, id appreciate it.

Thanks!!

Matthew

Reply via email to