The starting date.
The ending date.
console.log(dateDiff(new Date("12/12/2012"), new Date()));
// Output
{
"short": "3885d 15h 39m",
"full": "3885 day(s) 15 hours, 39 minutes",
"days": 3885,
"hours": 15,
"minutes": 39
}
Generated using TypeDoc
Calculates the difference between two provided dates and returns the result in various formats.