MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / formatLocalDateTimeLabel

Function formatLocalDateTimeLabel

apps/web/src/components/subscriptions/helpers.ts:176–180  ·  view source on GitHub ↗
(date: string | null, fallback: string = '—')

Source from the content-addressed store, hash-verified

174}
175
176export function formatLocalDateTimeLabel(date: string | null, fallback: string = '—'): string {
177 return date
178 ? new Date(date).toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' })
179 : fallback;
180}
181
182export function formatPaymentSummary(params: {
183 paymentSource: string | null;

Callers 3

helpers.test.tsFile · 0.90
CodingPlanDetailFunction · 0.90
CodingPlansGroupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected