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

Function getTopReaderBadgeDateFormat

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

Source from the content-addressed store, hash-verified

221};
222
223export const getTopReaderBadgeDateFormat = (date: string | Date): string => {
224 return new Date(date).toLocaleString('en-US', {
225 year: 'numeric',
226 month: 'long',
227 });
228};
229
230export const getPlusMemberDateFormat = (date: string | Date): string => {
231 return new Date(date).toLocaleString('en-US', {

Callers 1

formatDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected