src/sap.ui.core/src/sap/ui/core/Configuration.js
function() {
			var sName;

			// lazy load of LocaleData to avoid cyclic dependencies
			if ( !LocaleData ) {
				LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData");
			}

			if (this.calendarType) {
				for (sName in CalendarType) {
					if (sName.toLowerCase() === this.calendarType.toLowerCase()) {
						this.calendarType = sName;
						return this.calendarType;
					}
				}
				Log.warning("Parameter 'calendarType' is set to " + this.calendarType + " which isn't a valid value and therefore ignored. The calendar type is determined from format setting and current locale");
			}

			var sLegacyDateFormat = this.oFormatSettings.getLegacyDateFormat();

			switch (sLegacyDateFormat) {
				case "1":
				case "2":
				case "3":
				case "4":
				case "5":
				case "6":
					return CalendarType.Gregorian;
				case "7":
				case "8":
				case "9":
					return CalendarType.Japanese;
				case "A":
				case "B":
					return CalendarType.Islamic;
				case "C":
					return CalendarType.Persian;
			}

			return LocaleData.getInstance(this.getLocale()).getPreferredCalendarType();
		}
function() {
			var sName;

			// lazy load of LocaleData to avoid cyclic dependencies
			if ( !LocaleData ) {
				LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData");
			}

			if (this.calendarType) {
				for (sName in CalendarType) {
					if (sName.toLowerCase() === this.calendarType.toLowerCase()) {
						this.calendarType = sName;
						return this.calendarType;
					}
				}
				Log.warning("Parameter 'calendarType' is set to " + this.calendarType + " which isn't a valid value and therefore ignored. The calendar type is determined from format setting and current locale");
			}

			var sLegacyDateFormat = this.oFormatSettings.getLegacyDateFormat();

			switch (sLegacyDateFormat) {
				case "1":
				case "2":
				case "3":
				case "4":
				case "5":
				case "6":
					return CalendarType.Gregorian;
				case "7":
				case "8":
				case "9":
					return CalendarType.Japanese;
				case "A":
				case "B":
					return CalendarType.Islamic;
				case "C":
					return CalendarType.Persian;
			}

			return LocaleData.getInstance(this.getLocale()).getPreferredCalendarType();
		}
function ( ) { var sName ; // lazy load of LocaleData to avoid cyclic dependencies if ( ! LocaleData ) { LocaleData = sap . ui . requireSync ( "sap/ui/core/LocaleData" ) ; } if ( this . calendarType ) { for ( sName in CalendarType ) { if ( sName . toLowerCase ( ) === this . calendarType . toLowerCase ( ) ) { this . calendarType = sName ; return this . calendarType ; } } Log . warning ( "Parameter 'calendarType' is set to " + this . calendarType + " which isn't a valid value and therefore ignored. The calendar type is determined from format setting and current locale" ) ; } var sLegacyDateFormat = this . oFormatSettings . getLegacyDateFormat ( ) ; switch ( sLegacyDateFormat ) { case "1" : case "2" : case "3" : case "4" : case "5" : case "6" : return CalendarType . Gregorian ; case "7" : case "8" : case "9" : return CalendarType . Japanese ; case "A" : case "B" : return CalendarType . Islamic ; case "C" : return CalendarType . Persian ; } return LocaleData . getInstance ( this . getLocale ( ) ) . getPreferredCalendarType ( ) ; }
Returns the calendar type which is being used in locale dependent functionality.

When it's explicitly set by calling <code>setCalendar</code>, the set calendar type is returned.
Otherwise, the calendar type is determined by checking the format settings and current locale.

@return {sap.ui.core.CalendarType} the current calendar type
@since 1.28.6
Returns the calendar type which is being used in locale dependent functionality .