moment js compare month 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 get month day
//The correct function to use is .date():
date.date() === 25;