debugger block runs dez i (incremental improvements towards figma design(s)) (#3757)

This commit is contained in:
Jonathan Dobson
2025-10-17 17:00:55 -04:00
committed by GitHub
parent fb24641212
commit 20e0a25ede
3 changed files with 38 additions and 17 deletions

View File

@@ -55,3 +55,15 @@ export function toDate(
return date;
}
/** Returns a date in the format 'July 14th at 4:52pm' */
export function formatDate(date: Date): string {
const options: Intl.DateTimeFormatOptions = {
month: "long",
day: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true,
};
return date.toLocaleString("en-US", options);
}