Every single day I do like more and more datatables...it is really awesome.
Just to feel good and help someone else... the complete syntax is
"mRender": function (data, type, row) {
return parseInt( (new Date(row.fieldname1) - new Date(row.fieldname2)) / (24*3600*1000)) ;}
Replies
[code]
mData: 'date1',
mRender: function (data, type, row) {
return row.date2 - row.date1;
}
[/code]
Allan
Every single day I do like more and more datatables...it is really awesome.
Just to feel good and help someone else... the complete syntax is
"mRender": function (data, type, row) {
return parseInt( (new Date(row.fieldname1) - new Date(row.fieldname2)) / (24*3600*1000)) ;}