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

Method normalizeValue

packages/main/src/DatePicker.ts:809–815  ·  view source on GitHub ↗

* The parser understands many formats, but we need one format * @protected

(value: string)

Source from the content-addressed store, hash-verified

807 * @protected
808 */
809 normalizeValue(value: string) {
810 if (value === "") {
811 return value;
812 }
813
814 return this.getFormat().format(this.getFormat().parse(value, true), true); // it is important to both parse and format the date as UTC
815 }
816
817 /**
818 * The parser understands many formats, but we need one format

Callers

nothing calls this directly

Calls 3

formatMethod · 0.45
getFormatMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected