Skip to main content

Interface: CustomFormatter

Charting Library.CustomFormatter

Methods

format

format(date): string

Formats date and time

Parameters

NameType
dateDate

Returns

string


formatLocal

formatLocal(date): string

Converts date and time to local time zone.

Parameters

NameType
dateDate

Returns

string


parse

parse(value): string

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.

Parameters

NameType
valuestring

Returns

string