Returns the last day of the year that contains the CalculationDate.
var date = now.valueOf('2017-03-15');
var endOfYear = date.endOfYear();
console.log('endOfYear = %s', endOfYear);
//endOfYear = 2017-12-31 00:00:00
Returns the last day of the year that contains the CalculationDate.
var date = now.valueOf('2017-03-15');
var endOfYear = date.endOfYear();
console.log('endOfYear = %s', endOfYear);
//endOfYear = 2017-12-31 00:00:00