date_scale

specifies the date format of the time scale (X-Axis)

Parameters

dateDatethe date which needs formatting

Example

gantt.templates.date_scale = function(date){
    return gantt.date.date_to_str(gantt.config.date_scale)(date);
};

See also
Back to top