Skip to main content
Version: latest

CustomFormatter

Interface

Methods

format

Formats date and time

Signature

format(date: Date) => string

Parameters

NameType
dateDate

Returns

string


formatLocal

Converts date and time to local time zone.

Signature

formatLocal(date: Date) => string

Parameters

NameType
dateDate

Returns

string


parse

Returns a value in a format known by the UI. Required when using dateFormatter, it has to return a date in the following format: YYYY-MM-DD.

Signature

parse(value: string) => string

Parameters

NameType
valuestring

Returns

string