DateComponents: {
    day: number;
    hours?: number;
    milliseconds?: number;
    minutes?: number;
    month: number;
    seconds?: number;
    year: number;
}

Type declaration

  • day: number

    Day of the month.

  • Optionalhours?: number

    0-23 hour of the day.

  • Optionalmilliseconds?: number

    0-999 milliseconds of the second.

  • Optionalminutes?: number

    0-59 minute of the hour.

  • month: number

    1-12 month of the year.

  • Optionalseconds?: number

    0-59 second of the minute.

  • year: number

    4-digit year.