I display the date and time in one of the columns in the datatable and want to use to calculate the time duration. How can I achieve this on datatables
I want to calculate the active from date time of each row to current date time and add it to the query type column.
This is what I have so far:
$('#datatable').DataTable( {
//"ajax": "data/arrays.txt"
"processing": true,
"serverSide": false,
"searching": false,
'serverMethod': 'post',
'ajax': {
'url': "php/testing.php",
'data': function(data){
data.tasksts = "Open"
}
},
"columns": [
{ data: 'taskid', "visible": false },
{ data: 'activefrom' },
{ data: 'querytype' }
]
});