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

Method formatValue

packages/main/src/TimePicker.ts:851–853  ·  view source on GitHub ↗

* Formats a Java Script date object into a string representing a locale date and time * according to the `formatPattern` property of the TimePicker instance * @param date A Java Script date object to be formatted as string * @public * @returns formatted value

(date: Date)

Source from the content-addressed store, hash-verified

849 * @returns formatted value
850 */
851 formatValue(date: Date): string {
852 return this.getValueFormat().format(date);
853 }
854
855 /**
856 * Checks if a value is valid against the current `formatPattern` value.

Callers 2

_modifyValueByMethod · 0.95
_modifyDateValueMethod · 0.45

Calls 2

getValueFormatMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected