moment compare date by day code example
Example 1: compare two dates using moment
moment('2010-10-20').isAfter('2010-01-01', 'year'); // false
moment('2010-10-20').isAfter('2009-12-31', 'year'); // true
Example 2: moment js - to find if dates are same by day
var iscurrentDate = startTime.isSame(new Date(), "day");
if(iscurrentDate) {
}