MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / formatDate

Function formatDate

scripts/changelog-weekly.ts:503–506  ·  view source on GitHub ↗
(date: string)

Source from the content-addressed store, hash-verified

501}
502
503function formatDate(date: string) {
504 const { year, month, day } = dateParts(date);
505 return `${MONTHS[month - 1]} ${day}, ${year}`;
506}
507
508function dateParts(date: string) {
509 const [year = "0", month = "0", day = "0"] = date.split("-");

Callers 2

weeklyLabelFunction · 0.85
formatDateRangeFunction · 0.85

Calls 1

datePartsFunction · 0.85

Tested by

no test coverage detected