Options supported by format.

interface FormatOptions {
    format?: string;
    locale?: string;
}

Properties

Properties

format?: string
locale?: string

The locale to use when formatting the time. If not specified, the current locale is used (see locale module).