date format in table /Date(1350493200000)/
date format in table /Date(1350493200000)/
ballprogrammer
Posts: 11Questions: 0Answers: 0
i get json data from database and show to datatables
this date format
[code]
/Date(1350493200000)/
[/code]
i want change to
dd/mm/yy
this date format
[code]
/Date(1350493200000)/
[/code]
i want change to
dd/mm/yy
This discussion has been closed.
Replies
Allan
[code]
$.ajax( ... success:{ function1(data) } );
[/code]
fucntion add data to table
[code]
function1(data){
// this line i want convert some data format(/Date(1350493200000)/) to dd/mm/yy
table.fnAdddata(data);
}
[/code]
or
convert by aoColumnDefs fnRender
[code]
"aoColumnDefs": [
{
aTargets: [1],
fnRender: function (o, v) {
return 'o.aData['date_data'];';
}
}
],
[/code]