MCPcopy
hub / github.com/shadcn-ui/taxonomy / formatDate

Function formatDate

lib/utils.ts:10–17  ·  view source on GitHub ↗
(input: string | number)

Source from the content-addressed store, hash-verified

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

Callers 5

BillingFormFunction · 0.90
PostItemFunction · 0.90
BlogPageFunction · 0.90
PostPageFunction · 0.90
GuidesPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected