
Alex Batzer asked a question.
I want to calculate the difference (in days) between the due date (calculated field) and the date received (date field). How can I do that?

Alex Batzer asked a question.

var dueDate = moment(@your due date field);
var recDate = moment(@your date received field);
dueDate.diff(recDate,"days")
Your due date caculation field must have date format. It's even better to calculate the due date also in this calculation field so that this calc field must not rely/wait on the due date calc field.
var dueDate = moment(@your due date field);
var recDate = moment(@your date received field);
dueDate.diff(recDate,"days")
Your due date caculation field must have date format. It's even better to calculate the due date also in this calculation field so that this calc field must not rely/wait on the due date calc field.