Skip to main content

dateFormat

Optional. Defines the format of dates

note

The date format must include delimiters (spaces or symbols), otherwise an error will be thrown

Usage

dateFormat?: string;

Default value: "%M %d %Y"

Example

const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "date", header: [{ text: "Date" }], type: "date", dateFormat: "%M %d %Y" },
// more columns configuration objects
],
// more options
});

Related article: Setting the format for dates

Related sample: Grid. Data formats (percent, currency, date and combination with templates)