Interface DateTimeFormat

interface DateTimeFormat {
    format(date?: number | Date): string;
    formatRange(startDate: number | bigint | Date, endDate: number | bigint | Date): string;
    formatRangeToParts(startDate: number | bigint | Date, endDate: number | bigint | Date): DateTimeRangeFormatPart[];
    formatToParts(date?: number | Date): DateTimeFormatPart[];
    resolvedOptions(): ResolvedDateTimeFormatOptions;
}

Methods

  • Parameters

    • Optionaldate: number | Date

    Returns string

  • Parameters

    • startDate: number | bigint | Date
    • endDate: number | bigint | Date

    Returns string