Yes but it may be better to change your separator.
I haven't tested this but it should work...
$.tablesorter.addParser({
id: dotDate,
is: function(s) {
return /\d{1,2}\.\d{1,2}\.\d{2,4}/.test(s);
},
format: function(s,table) {
s = s.replace(/(\d{1,2})\.(\d{1,2})\.(\d{2,4})/,
ack, just realized you're doing dd.mm so gotta change it to
s = s.replace(/(\d{1,2})\.(\d{1,2})\.(\d{2,4})/, $2/$1/$3);
i think?
stephen
On Wed, Nov 5, 2008 at 13:50, aquaone [EMAIL PROTECTED] wrote:
Yes but it may be better to change your separator.
I haven't tested this but it should
Posted this code:
http://paste.pocoo.org/show/86103/
on an earlier exact post like this:
$.tablesorter.addParser({
id: 'dd.mm.',
is: function(s) {
return false;
},
format: function(s) {
3 matches
Mail list logo