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;
}
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;
}
Index
Methods
format
- format(date?): string
Parameters
Optional
date: number | Date
Returns string
formatRange
formatRangeToParts
- format
Range (startDate, endDate): DateTimeRangeFormatPart[]To Parts Returns DateTimeRangeFormatPart[]
formatToParts
- format
To (date?): DateTimeFormatPart[]Parts Parameters
Optional
date: number | Date
Returns DateTimeFormatPart[]
resolvedOptions
- resolved
Options (): ResolvedDateTimeFormatOptions Returns ResolvedDateTimeFormatOptions