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

Function format

packages/shared/src/features/squads/lib/intel.ts:52–57  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

50 weekEnd: string;
51}): string => {
52 const format = (date: Date) =>
53 date.toLocaleDateString('en-US', {
54 month: 'short',
55 day: 'numeric',
56 timeZone: 'UTC',
57 });
58 const lastDay = new Date(new Date(weekEnd).getTime() - 24 * 60 * 60 * 1000);
59
60 return `${format(new Date(weekStart))} to ${format(lastDay)}`;

Callers 15

TodayLineFunction · 0.85
addLocalDaysFunction · 0.85
formatMissedDateFunction · 0.85
BookmarkReminderModalFunction · 0.85
JoinedDateFunction · 0.85
ReplyAuthorFunction · 0.85
FeedbackThreadFunction · 0.85
FeedbackCardFunction · 0.85
StreakQuestsSectionFunction · 0.85
DateFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected