A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/gridcolumn_properties/gridcolumn_dateformat_property/ below:

Website Navigation


JavaScript Grid column - dateFormat Config

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)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4