Type representing a date without time.

interface DateOnly {
    day: number;
    month: number;
    year: number;
}

Properties

Properties

day: number

The day of the month.

month: number

The month. 1-based. Unlike JavaScript Date object, which is 0-based.

year: number

The year.