diff options
Diffstat (limited to 'apps/web/src/utils/date.ts')
| -rw-r--r-- | apps/web/src/utils/date.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/web/src/utils/date.ts b/apps/web/src/utils/date.ts new file mode 100644 index 00000000..6a7e9ca5 --- /dev/null +++ b/apps/web/src/utils/date.ts @@ -0,0 +1,7 @@ +export function formatDate({ date }: { date: Date }): string { + return date.toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + }); +} |
