Date format configuration options for regional date display.

Defines available date formats including different component ordering (Day/Month/Year vs Month/Day/Year) and display patterns.

Example

const dateFormats: DateFormatOptions[] = [
{ id: 'us', format: 'MM/DD/YYYY', order: 'MDY' }, // 03/15/2024
{ id: 'eu', format: 'DD/MM/YYYY', order: 'DMY' }, // 15/03/2024
{ id: 'iso', format: 'YYYY-MM-DD', order: 'YMD' } // 2024-03-15
];
interface DateFormatOptions {
    order: string;
}

Hierarchy

  • FormatOptions
    • DateFormatOptions

Properties

Properties

order: string

Order of date components: 'MDY', 'DMY', 'YMD', etc.