is calling of moment().year() garanty the current yeatr code example Example: getFullYear within moment in angular alert((new Date()).getFullYear());