Returns the year that contains the CalculationDate.

var date = now.valueOf('2016-01-23');

console.log('Year = %s', date.year());

// Year = 2017
Did this answer your question?