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