Returns the number of days in the month that contains the CalculationDate.

var date = now.valueOf('2016-02-22'); // February

var endOfDay = date.endOfDay();

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

//endOfMonth = 2017-02-22 00:00:00
Did this answer your question?