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

Function getTopReaderBadgeDateFormat

packages/shared/src/lib/dateFormat.ts:208–213  ·  view source on GitHub ↗
(date: string | Date)

Source from the content-addressed store, hash-verified

206};
207
208export const getTopReaderBadgeDateFormat = (date: string | Date): string => {
209 return new Date(date).toLocaleString('en-US', {
210 year: 'numeric',
211 month: 'long',
212 });
213};
214
215export const getPlusMemberDateFormat = (date: string | Date): string => {
216 return new Date(date).toLocaleString('en-US', {

Callers 1

formatDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected