Skip to main content
Module

x/neo4j_driver_lite/mod.ts>Date

Neo4j Bolt driver for JavaScript
Go to Latest
class Date
Re-export
import { Date } from "https://deno.land/x/neo4j_driver_lite@5.14.0-alpha01/mod.ts";

Represents an instant capturing the date, but not the time, nor the timezone. Created Date objects are frozen with Object.freeze() in constructor and thus immutable.

Constructors

new
Date(
year: T,
month: T,
day: T,
)

Type Parameters

optional
T extends NumberOrInteger = Integer

Properties

readonly
day: T
readonly
month: T
readonly
year: T

Methods

toStandardDate(): StandardDate

Convert date to standard JavaScript Date.

The time component of the returned Date is set to midnight and the time zone is set to UTC.

Static Methods

fromStandardDate(standardDate: StandardDate): Date<number>

Create a Date object from the given standard JavaScript Date. Hour, minute, second, millisecond and time zone offset components of the given date are ignored.