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