Skip to main content

task_date

Description

Specifies the date format of the label in the 'Time period' section of the lightbox

task_date: (date: Date) => string;

Parameters

  • date - (required) Date - the date which needs formatting

Returns

  • text - (string) - html text which will be rendered in the gantt

Example

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