export function formatDate(inputDate: string): string { | |
const date = new Date(inputDate); | |
const options: Intl.DateTimeFormatOptions = { | |
year: "numeric", | |
month: "long", | |
day: "2-digit", | |
hour: "numeric", | |
minute: "numeric", | |
timeZoneName: "short", | |
}; | |
const formattedDate = date.toLocaleDateString("en-US", options); | |
return formattedDate; | |
} | |