moment js check how many days have passed from a specifc date code example
Example: moment js - to find if dates are same by day
var iscurrentDate = startTime.isSame(new Date(), "day");
if(iscurrentDate) {
}
var iscurrentDate = startTime.isSame(new Date(), "day");
if(iscurrentDate) {
}