MCPcopy Create free account
hub / github.com/electric-sql/electric / formatDate

Function formatDate

examples/linearlite/src/utils/date.ts:3–6  ·  view source on GitHub ↗
(date?: Date)

Source from the content-addressed store, hash-verified

1import dayjs from 'dayjs'
2
3export function formatDate(date?: Date): string {
4 if (!date) return ``
5 return dayjs(date).format(`D MMM`)
6}

Callers 2

IssueRowFunction · 0.90
commentListFunction · 0.90

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected