MCPcopy Create free account
hub / github.com/alanagoyal/docbase / formatDate

Function formatDate

components/documents.tsx:77–86  ·  view source on GitHub ↗
(dateString: string | null)

Source from the content-addressed store, hash-verified

75 }
76
77 const formatDate = (dateString: string | null) => {
78 if (!dateString) return "n/a"
79 const date = new Date(dateString)
80 return date.toLocaleDateString("en-US", {
81 month: "2-digit",
82 day: "2-digit",
83 year: "2-digit",
84 timeZone: "UTC",
85 })
86 }
87
88 useEffect(() => {
89 const handleKeyDown = (e: KeyboardEvent) => {

Callers 1

DocumentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected