Interface: CustomFormatter
Charting Library.CustomFormatter
Methods
format
▸ format(date): string
Formats date and time
Parameters
| Name | Type |
|---|---|
date | Date |
Returns
string
formatLocal
▸ formatLocal(date): string
Converts date and time to local time zone.
Parameters
| Name | Type |
|---|---|
date | Date |
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
| Name | Type |
|---|---|
value | string |
Returns
string