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