formatDate
formatDate(
isoDate,options):string
Defined in: utils/format.ts:90
Format ISO date string as human-readable date.
Parameters
Section titled “Parameters”isoDate
Section titled “isoDate”string
ISO date string (e.g., “2024-01-15T10:30:00Z”)
options
Section titled “options”DateTimeFormatOptions = ...
Intl.DateTimeFormat options
Returns
Section titled “Returns”string
Formatted date string
Example
Section titled “Example”formatDate("2024-01-15T10:30:00Z");// "Jan 15, 2024, 10:30 AM" (in local timezone)
formatDate("2024-01-15T10:30:00Z", { dateStyle: "short" });// "1/15/24"