How can i use the following code in my data got from php

How can i use the following code in my data got from php

dannjorogedannjoroge Posts: 6Questions: 4Answers: 0

i have ordered using javascript using

{
data: 'start_date',
render: function ( data, type, row ) {
// If display or filter data is requested, format the date
if ( type === 'display' || type === 'filter' ) {
var d = new Date( data * 1000 );
return d.getDate() +'-'+ (d.getMonth()+1) +'-'+ d.getFullYear();
}

    // Otherwise the data type requested (`type`) is type detection or
    // sorting data, for which we want to use the integer, so just return
    // that, unaltered
    return data;
}

}

This discussion has been closed.