MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / parseIsoDate

Function parseIsoDate

app/utils/date.ts:4–6  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2export const DAY_MS = 86_400_000
3
4export function parseIsoDate(value: string): Date {
5 return new Date(`${value}T00:00:00.000Z`)
6}
7
8export function toIsoDate(date: Date): string {
9 return date.toISOString().slice(0, 10)

Callers 8

date.spec.tsFile · 0.90
buildDailyEvolutionFunction · 0.90
buildWeeklyEvolutionFunction · 0.90
buildMonthlyEvolutionFunction · 0.90
buildYearlyEvolutionFunction · 0.90
resolveDateRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected