start date and end date problem in task

I’ve a task A with StartDate 12.05. (Monday) and EndDate 15.05.
(Thursday) = 4 days.
But the task A is shown in the gantt from 12.05. to 14.05. and
the bar says it lasts 3 days - in every example the last (end) day isn’t
How can I display the task with 4 days duration? Also need to show the end date as 15.05

Please help me :slight_smile:


probably the date is set as 15.05.2014 00:00:00 . This way it covers 14th may, and ends on midnight between 14th and 15th

I know that. But I need to cover the date 15.5 also. How will I customize the code?

I’m not sure I understand the issue
Have you considered setting the date to 16.05.2014 00:00 ?

yes, I did this. Here I’m using tooltip. So the date will be shown as 16-5. I need to change this to 15-5

You can override a template for a tooltip text, in order to make it use previous day:

[code]gantt.templates.tooltip_text = function(start,end,task){

var end =, -1, "day");

return "<b>Task:</b> "+task.text+"<br/><b>Start date:</b> " + 
"<br/><b>End date:</b> "+gantt.templates.tooltip_date_format(end);

};[/code] … plate.html

Thanks for your support :slight_smile: