const date1 = new Date('12/13/2021');
const date2 = new Date('12/15/2021');
const diffTime = Math.abs(date2 - date1);
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 *24));
console.log(diffDays);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)