Skip to content

Commit

Permalink
refactor: Extract format date logic
Browse files Browse the repository at this point in the history
Extract date formatting to separate function.
  • Loading branch information
LuukvH committed Jul 15, 2024
1 parent 35b565a commit 6771a6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/web/src/utils/formatDate.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import dayjs from "dayjs";

export const formatDate = (value: string) => value && dayjs(value).format("L");

0 comments on commit 6771a6a

Please sign in to comment.