function toBuddhist(oGregorian) {
		var iEraStartYear = UniversalDate.getEraStartDate(CalendarType.Buddhist, 0).year,
			iYear = oGregorian.year - iEraStartYear + 1;
		// Before 1941 new year started on 1st of April
		if (oGregorian.year < 1941 && oGregorian.month < 3) {
			iYear -= 1;
		}
		if (oGregorian.year === null) {
			iYear = undefined;
		}
		return {
			year: iYear,
			month: oGregorian.month,
			day: oGregorian.day
		};
	}
function toBuddhist(oGregorian) {
		var iEraStartYear = UniversalDate.getEraStartDate(CalendarType.Buddhist, 0).year,
			iYear = oGregorian.year - iEraStartYear + 1;
		// Before 1941 new year started on 1st of April
		if (oGregorian.year < 1941 && oGregorian.month < 3) {
			iYear -= 1;
		}
		if (oGregorian.year === null) {
			iYear = undefined;
		}
		return {
			year: iYear,
			month: oGregorian.month,
			day: oGregorian.day
		};
	}
function toBuddhist ( oGregorian ) { var iEraStartYear = UniversalDate . getEraStartDate ( CalendarType . Buddhist , 0 ) . year , iYear = oGregorian . year - iEraStartYear + 1 ; // Before 1941 new year started on 1st of April if ( oGregorian . year < 1941 && oGregorian . month < 3 ) { iYear -= 1 ; } if ( oGregorian . year === null ) { iYear = undefined ; } return { year : iYear , month : oGregorian . month , day : oGregorian . day } ; }
Find the matching Buddhist date for the given gregorian date

@param {object} oGregorian
@return {object}
Find the matching Buddhist date for the given gregorian date
Converts a gregorian date to Buddhist.