src/sap.ui.core/src/sap/ui/core/date/Buddhist.js
function toGregorian(oBuddhist) {
		var iEraStartYear = UniversalDate.getEraStartDate(CalendarType.Buddhist, 0).year,
			iYear = oBuddhist.year + iEraStartYear - 1;
		// Before 1941 new year started on 1st of April
		if (iYear < 1941 && oBuddhist.month < 3) {
			iYear += 1;
		}
		if (oBuddhist.year === null) {
			iYear = undefined;
		}
		return {
			year: iYear,
			month: oBuddhist.month,
			day: oBuddhist.day
		};
	}
function toGregorian(oBuddhist) {
		var iEraStartYear = UniversalDate.getEraStartDate(CalendarType.Buddhist, 0).year,
			iYear = oBuddhist.year + iEraStartYear - 1;
		// Before 1941 new year started on 1st of April
		if (iYear < 1941 && oBuddhist.month < 3) {
			iYear += 1;
		}
		if (oBuddhist.year === null) {
			iYear = undefined;
		}
		return {
			year: iYear,
			month: oBuddhist.month,
			day: oBuddhist.day
		};
	}
function toGregorian ( oBuddhist ) { var iEraStartYear = UniversalDate . getEraStartDate ( CalendarType . Buddhist , 0 ) . year , iYear = oBuddhist . year + iEraStartYear - 1 ; // Before 1941 new year started on 1st of April if ( iYear < 1941 && oBuddhist . month < 3 ) { iYear += 1 ; } if ( oBuddhist . year === null ) { iYear = undefined ; } return { year : iYear , month : oBuddhist . month , day : oBuddhist . day } ; }
Calculate gregorian year from Buddhist year and month

@param {object} oBuddhist
@return {int}
Calculate gregorian year from Buddhist year and month