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

Function formatDate

apps/web/src/components/organizations/subscription/utils.ts:5–11  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

3
4// Module-level formatting functions
5export const formatDate = (timestamp: number) => {
6 return new Date(timestamp * 1000).toLocaleDateString('en-US', {
7 year: 'numeric',
8 month: 'long',
9 day: 'numeric',
10 });
11};
12
13export const formatCurrency = (amount: number) => {
14 return new Intl.NumberFormat('en-US', {

Callers 3

SubscriptionQuickActionsFunction · 0.90
detectPendingCycleChangeFunction · 0.90
SubscriptionOverviewCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected