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

Method getValueFormat

packages/main/src/DateComponentBase.ts:289–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 }
288
289 getValueFormat() {
290 if (!this._valueFormat) {
291 return this.getISOFormat();
292 }
293
294 return this._isValueFormatPattern
295 ? DateFormat.getDateInstance({
296 strictParsing: true,
297 pattern: this._valueFormat,
298 calendarType: this._primaryCalendarType,
299 })
300 : DateFormat.getDateInstance({
301 strictParsing: true,
302 style: this._valueFormat,
303 calendarType: this._primaryCalendarType,
304 });
305 }
306
307 getISOFormat() {
308 if (!this._isoFormatInstance) {

Callers 2

Calls 2

getISOFormatMethod · 0.95
getDateInstanceMethod · 0.80

Tested by

no test coverage detected