How can I display 'gantt_task_content' until the specified end date?

hello,

I’d like to render ‘gantt_task_content’ from start date to end date.
but, currently, the date obtained by adding the duration to the start date is being rendered as the end date.
How can I display ‘gantt_task_content’ until the specified end date?

Hello,
Gantt displays tasks in the timeline depending on the start_date and end_date parameters.
You need to know that even if the hours are not displayed in the grid, Gantt still uses them:


I suppose, you want something like inclusive dates, but Gantt doesn’t work that way as it uses non-inclusive duration. There is no way to change how Gantt works, but you can change what is displayed to the users by using the templates:
https://docs.dhtmlx.com/gantt/desktop__loading.html#taskenddatedisplayampinclusiveenddates
https://docs.dhtmlx.com/gantt/api__gantt_task_end_date_template.html
Here is an example of how it works:
https://snippet.dhtmlx.com/ici6m0dp

Also, you can set the duration_unit to ‘hour’ and enable the work_time parameter:
https://docs.dhtmlx.com/gantt/api__gantt_duration_unit_config.html
https://docs.dhtmlx.com/gantt/api__gantt_work_time_config.html
Gantt will show the same dates in the grid because the hours will be different.
To show the duration in days and even in fractional values, you can use the formatters:
https://docs.dhtmlx.com/gantt/desktop__formatters_ext.html#durationformatter

Here is an example with the date input type in the inline editors:
https://snippet.dhtmlx.com/w5hrv69x
Here we need to modify the dates because the input element with the date type doesn’t have the hour values.

Here is another example with the datetime-local input type in the inline editors:
https://snippet.dhtmlx.com/gjrgzm0p
The input element may take more space, but it will store the dates more accurately.