Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function temporalUtil.dateToEpochDay
import { temporalUtil } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { dateToEpochDay } = temporalUtil;

Converts given local date into a single integer representing it's epoch day.

Parameters

year: NumberOrInteger | string

the year of the local date to convert.

month: NumberOrInteger | string

the month of the local date to convert.

day: NumberOrInteger | string

the day of the local date to convert.

Returns

Integer

epoch day representing the given date.