date_format

sets the date format that is used to parse data from a data set and to send dates back to the server

string date_format;

Example

gantt.config.date_format = "%Y-%m-%d %H:%i";
...
gantt.init("gantt_here");
gantt.load("/data/tasks");


Default value:

"%d-%m-%Y %H:%i"
Details

This config value is used to generate parse_date and format_date template functions. If you want to use a custom format, you can either change this config, or redefine parse_date and format_date templates directly.

See also
Back to top