MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / formatDateForPicker

Function formatDateForPicker

app/src/utils/dayjs.ts:15–16  ·  view source on GitHub ↗
(date: number)

Source from the content-addressed store, hash-verified

13 dayjs.duration(dayjs(date).diff(dayjs())).humanize(true);
14
15export const formatDateForPicker = (date: number) =>
16 dayjs(new Date(date)).format("YYYY-MM-DD HH:mm");
17
18export const formatToUTCDayMonth = (dateStr: string | Date) =>
19 dayjs(dateStr).utc().format("DD MMM");

Callers 2

DateRangeFunction · 0.90
DateFilterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected