I am trying to get the days difference between two different dates like in these formats
2019-12-12T17:57:48.188-08:00
and other one is new Date()
using the below formula
(Math.floor(new Date().getTime() - new Date(2019-12-12T17:57:48.188-08:00).getTime()) / (1000 * 3600 * 24)).toString()
but some how getting this value 0.15538604166666667
Could any one please suggest me on how to get exact difference in days between these two dates. many thanks.