MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / formatDate

Function formatDate

frontend/lib/utils.ts:8–15  ·  view source on GitHub ↗
(input: string | number)

Source from the content-addressed store, hash-verified

6}
7
8export function formatDate(input: string | number): string {
9 const date = new Date(input)
10 return date.toLocaleDateString("en-US", {
11 month: "long",
12 day: "numeric",
13 year: "numeric",
14 })
15}
16
17export function absoluteUrl(path: string) {
18 // return `${process.env.NEXT_PUBLIC_APP_URL}${path}`

Callers 2

BlogPageFunction · 0.90
PostPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected