Expensive,
I need to calculate how many days remain to reach the target date.
I'm getting the following values
var dataPrev = row[4]; //26/01/2018
var dataNaoFormat = new Date(); //22/01/2018
I'm doing the following calculation:
var sub = dataPrev - dataNaoFormat;
And the result is:
2.65807814E8
Taking the scientific format, 26,580,781,400,000,000.00
I need to get an integer back, in which case it would be 4.