Calculate the number of days between 2 dates in JavaScript
Originally posted here!
Calculate the number of days between 2 dates
Consider this 2 dates,
// 2 dates
const date1 = new Date("September 03, 1998");
const date2 = new Date(); // will return current date
You can also provide the date in MM/DD/YYYY f...
melvingeorge-me.hashnode.dev3 min read