ts.addParser({ id: "shortDate", is: function(s) { return /\d{2,}[\s]\w{4,}[\s]\d{4,}/.test(s); }, format: function(s,table) { var c = table.config; s = s.replace(/\-/g," "); if(c.dateFormat == "us") { // reformat the string in ISO format s = s.replace(/(\d{2,})[\s](\w{4,})[\s](\d{4,})/, "$3/$1/$2"); } else if(c.dateFormat == "uk") { //reformat the string in ISO format s = s.replace(/(\d{2,})[\s](\w{4,})[\s](\d{4,})/, "$3/$2/$1"); } else if(c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") { ...