MCPcopy Create free account
hub / github.com/UI5/webcomponents / getFormat

Method getFormat

packages/main/src/TimePicker.ts:783–799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

781 }
782
783 getFormat() {
784 let dateFormat;
785
786 if (this._isPattern) {
787 dateFormat = DateFormat.getDateInstance({
788 strictParsing: true,
789 pattern: this._formatPattern,
790 });
791 } else {
792 dateFormat = DateFormat.getDateInstance({
793 strictParsing: true,
794 style: this._formatPattern,
795 });
796 }
797
798 return dateFormat;
799 }
800
801 getISOFormat() {
802 if (!this._isoFormatInstance) {

Callers 15

onBeforeRenderingMethod · 0.95
getDisplayFormatMethod · 0.95
isValidMethod · 0.95
formValidityMessageMethod · 0.45
isValidMethod · 0.45
normalizeValueMethod · 0.45
_lastDayOfTheYearMethod · 0.45
_calendarPickersModeMethod · 0.45
_setSelectedDatesMethod · 0.45
_isValidCalendarDateMethod · 0.45
_specialCalendarDatesMethod · 0.45

Calls 1

getDateInstanceMethod · 0.80

Tested by

no test coverage detected