0
1
JJJohn Jones
The following code calculates the number of days between two dates. It uses the Ceil() function to round up the number of days to the nearest integer.
0 Comments
const daysDiff = (date, date2) => Math.ceil(Math.abs(date β date2) / 86400000);