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

Method formatValue

packages/main/src/DatePicker.ts:1045–1047  ·  view source on GitHub ↗

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

(date: Date)

Source from the content-addressed store, hash-verified

1043 * @returns The date as string
1044 */
1045 formatValue(date: Date): string {
1046 return this.getValueFormat().format(date);
1047 }
1048
1049 _togglePicker(): void {
1050 this.open = !this.open;

Callers 1

_modifyDateValueMethod · 0.95

Calls 2

formatMethod · 0.45
getValueFormatMethod · 0.45

Tested by

no test coverage detected