public/javascripts/yui/calendar/calendar.js
function(date) {
        var start = this.findMonthStart(date);
        var nextMonth = this.add(start, this.MONTH, 1);
        var end = this.subtract(nextMonth, this.DAY, 1);
        return end;
    }
function(date) {
        var start = this.findMonthStart(date);
        var nextMonth = this.add(start, this.MONTH, 1);
        var end = this.subtract(nextMonth, this.DAY, 1);
        return end;
    }
function ( date ) { var start = this . findMonthStart ( date ) ; var nextMonth = this . add ( start , this . MONTH , 1 ) ; var end = this . subtract ( nextMonth , this . DAY , 1 ) ; return end ; }
Gets the last day of a month containing a given date.
@method findMonthEnd
@param {Date} date The JavaScript Date used to calculate the month end
@return {Date}  The JavaScript Date representing the last day of the month
Gets the last day of a month containing a given date .