how to get current year in moment js code example Example: getFullYear within moment in angular alert((new Date()).getFullYear());