MCPcopy Create free account
hub / github.com/dailydotdev/apps / shortDate

Function shortDate

packages/shared/src/features/boost/BoostManager.tsx:269–273  ·  view source on GitHub ↗
(date: Date | string)

Source from the content-addressed store, hash-verified

267}
268
269const shortDate = (date: Date | string): string =>
270 new Date(date).toLocaleDateString('en-US', {
271 month: 'short',
272 day: 'numeric',
273 });
274
275const daysLeftOf = ({ endedAt }: Campaign): string => {
276 const end = new Date(endedAt);

Callers 1

BoostNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected