moment get current year code example
Example 1: moment get month day
//The correct function to use is .date():
date.date() === 25;
Example 2: getFullYear within moment in angular
alert((new Date()).getFullYear());
Example 3: moment js print date
moment(testDate).format('MM/DD/YYYY');
Example 4: moment get day
var check = moment(n.entry.date_entered, 'YYYY/MM/DD');
var month = check.format('M');
var day = check.format('D');
var year = check.format('YYYY');