Returns the year that contains the CalculationDate.
var date = now.valueOf('2016-01-23');
console.log('Year = %s', date.year());
// Year = 2017
Returns the year that contains the CalculationDate.
var date = now.valueOf('2016-01-23');
console.log('Year = %s', date.year());
// Year = 2017