Skip to main content

Variable: formatDate

const formatDate: (value, ctx) => string

Defined in: time/format.ts:91

A Field formatValue: the stored instant, date only, in the dataset zone and the Gantt's locale. '' for a missing value. To tailor the shown fields, build a Formatter with dateFormatter (dateFormatter({ day: '2-digit', month: 'short' })) instead of calling this with options.

Parameters​

value​

unknown

ctx​

FormatContext

Returns​

string