grid_date_format

specifies the format of dates for the columns that show dates (return the Date values)

dateDatethe date which needs formatting
columnstringthe name of the column that called the template

Example

gantt.templates.grid_date_format = function(date, column){
    return gantt.date.date_to_str(gantt.config.date_grid)(date);
};

Details

The template function is called for all tasks, except for the unscheduled ones.

The grid_date_format template is used only by the date_grid template, so if you make some changes in it, grid_date_format will be affected.

See also
Back to top