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

Function formatDateOnly

apps/web/src/lib/admin-utils.ts:42–49  ·  view source on GitHub ↗
(date: Date | string)

Source from the content-addressed store, hash-verified

40 * Formats a date as a date-only string (no time component).
41 */
42export function formatDateOnly(date: Date | string): string {
43 const dateObj = typeof date === 'string' ? new Date(date) : date;
44 return new Intl.DateTimeFormat('en-US', {
45 year: 'numeric',
46 month: 'short',
47 day: 'numeric',
48 }).format(dateObj);
49}
50
51export function getPaymentMethodBadgeVariant(
52 status?: PaymentMethodStatus

Callers 2

UsageRowFunction · 0.90
NextCreditExpirationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected