API Reference > ui-components > Common > toTimeString toTimeString Function Format the time included in a date, optionally converting to time zone, if specified toTimeString(date: Date, timeZoneOffset?: number): string Parameter Type Description date Date Date object timeZoneOffset number optional: offset from UTC to use for conversion Returns - string formatted time string Defined in ui/components/src/ui-components/common/DateUtils.ts Line 56 Last Updated: 11 June, 2024