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

Function isValidDate

packages/shared/src/lib/dateFormat.ts:17–18  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

15const oneMonth = 30 * oneDay;
16export const oneYear = oneDay * 365;
17export const isValidDate = (date: Date): boolean =>
18 !Number.isNaN(date.getTime());
19
20export const publishTimeRelativeShort = (
21 value: Date | number | string,

Callers 3

DateFormatFunction · 0.90
isTodayDateFunction · 0.90
formatDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected