How to find the difference of values in a row?
How to find the difference of values in a row?

( "columns": [
{ "data": "start_date" },
{ "data": "end_date" },
{ defaultContent: "?" },
])
I'm getting a table from the server side
and I want to find the difference in the value of the row and display it in the 3rd column.
How do I express the difference in dates in rows 1 and 2
This discussion has been closed.
Replies
You would get the values with
cell().data()
, and then use Moment.js to do the calculations - it's excellent for all time/date based operations.Colin