DateFormatterConfigType: {
    inputFormat?: string;
    outputFormat?: string;
    type: string;
}

The configuration object for the DateFormatter formatter.

Type declaration

  • OptionalinputFormat?: string

    The input format of the date. If not set, the input format is 'YYYY-MM-DD HH:mm:ss'. Under the hood, OverGrid uses the moment.js library to parse the date. You can set any format that moment.js supports. For more information, see the moment.js documentation: https://momentjs.com/docs/#/parsing/string-format/.

  • OptionaloutputFormat?: string

    The output format of the date. If not set, the output format is 'YYYY-MM-DD HH:mm:ss'. Under the hood, OverGrid uses the moment.js library to format the date. You can set any format that moment.js supports. For more information, see the moment.js documentation: https://momentjs.com/docs/#/displaying/format/.

  • type: string

    The type of the formatter. In this case, it should be 'DateTime'.