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

epoch day representing the given date.