momentjs year month date code example
Example 1: moment js year only
moment().year(Number);
moment().year(); // Number
moment().years(Number);
moment().years(); // Number
Example 2: moment get month day
//The correct function to use is .date():
date.date() === 25;