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

Method getValueFormat

packages/main/src/DateTimePicker.ts:484–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482 }
483
484 getValueFormat() {
485 if (!this._valueFormat) {
486 return this.getISOFormat();
487 }
488
489 return this._isValueFormatPattern
490 ? DateFormat.getDateTimeInstance({
491 strictParsing: true,
492 pattern: this._valueFormat,
493 calendarType: this._primaryCalendarType,
494 })
495 : DateFormat.getDateTimeInstance({
496 strictParsing: true,
497 style: this._valueFormat,
498 calendarType: this._primaryCalendarType,
499 });
500 }
501
502 getISOFormat() {
503 if (!this._isoFormatInstance) {

Callers 5

_togglePickerMethod · 0.95
onSelectedDatesChangeMethod · 0.95
_submitClickMethod · 0.95
getSelectedDateTimeMethod · 0.95

Calls 1

getISOFormatMethod · 0.95

Tested by

no test coverage detected