MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / formatPrimaryDate

Function formatPrimaryDate

src/components/CronJobCard.tsx:105–113  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

103}
104
105function formatPrimaryDate(dateString: string): string {
106 return new Intl.DateTimeFormat("zh-CN", {
107 month: "numeric",
108 day: "numeric",
109 weekday: "short",
110 hour: "2-digit",
111 minute: "2-digit",
112 }).format(new Date(dateString));
113}
114
115function formatFullDate(dateString: string): string {
116 return new Intl.DateTimeFormat("zh-CN", {

Callers 1

getTimeMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected