MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / getUtcDay

Function getUtcDay

src/fixtures/v2Finance.ts:16–16  ·  view source on GitHub ↗
(isoDay: string)

Source from the content-addressed store, hash-verified

14const toIsoDay = (date: Date) => date.toISOString().slice(0, 10);
15
16const getUtcDay = (isoDay: string) => new Date(`${isoDay}T00:00:00Z`);
17
18const getWeekKey = (isoDay: string) => {
19 const date = getUtcDay(isoDay);

Callers 1

getWeekKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected