Hi,
gantt.getState() contains date range that is currently shown in timeline time scale, while gantt.getSubtaskDates() shows date range of all task loaded into gantt. I.e. these methods show different settings of the gantt
No, It shows the range of timescale dates, which generally differs from the date range of loaded tasks since scale can rounded to specified time units (day/month/year), or can be specified explicitly using start_date/end_date configs.
Currently getState result does not contain date range of tasks loaded into gantt, this date range has to be be retrieved using other method of public api - gantt.getSubtaskDates
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan