src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
function _handleSelectMonth(oEvent){

		var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime());
		var oMonthPicker = this.getAggregation("monthPicker");
		var iMonth = oMonthPicker.getMonth();

		oFocusedDate.setUTCMonth(iMonth);

		if (iMonth != oFocusedDate.getUTCMonth() ) {
			// day did not exist in this month (e.g. 31) -> go to last day of month
			oFocusedDate.setUTCDate(0);
		}

		_focusDate.call(this, oFocusedDate, true);

		_hideMonthPicker.call(this);

	}
function _handleSelectMonth(oEvent){

		var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime());
		var oMonthPicker = this.getAggregation("monthPicker");
		var iMonth = oMonthPicker.getMonth();

		oFocusedDate.setUTCMonth(iMonth);

		if (iMonth != oFocusedDate.getUTCMonth() ) {
			// day did not exist in this month (e.g. 31) -> go to last day of month
			oFocusedDate.setUTCDate(0);
		}

		_focusDate.call(this, oFocusedDate, true);

		_hideMonthPicker.call(this);

	}
function _handleSelectMonth ( oEvent ) { var oFocusedDate = new UniversalDate ( this . _getFocusedDate ( ) . getTime ( ) ) ; var oMonthPicker = this . getAggregation ( "monthPicker" ) ; var iMonth = oMonthPicker . getMonth ( ) ; oFocusedDate . setUTCMonth ( iMonth ) ; if ( iMonth != oFocusedDate . getUTCMonth ( ) ) { // day did not exist in this month (e.g. 31) -> go to last day of month oFocusedDate . setUTCDate ( 0 ) ; } _focusDate . call ( this , oFocusedDate , true ) ; _hideMonthPicker . call ( this ) ; }
Handles user selection of a month from the Month Picker.
This function assumes there is a "monthPicker" aggregation.
So callers must take care.
@return {void}
@private
Handles user selection of a month from the Month Picker . This function assumes there is a monthPicker aggregation . So callers must take care .