Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
dayjs from
'dayjs'
2
3
export
function
formatDate(date?: Date): string {
4
if
(!date)
return
``
5
return
dayjs(date).format(`D MMM`)
6
}
Callers
2
IssueRow
Function · 0.90
commentList
Function · 0.90
Calls
1
format
Method · 0.80
Tested by
no test coverage detected