Gannt Configuration to show Gantt chart table display on current month

Hello,
I need to show initial display of Gantt chart from current month. For eg if the date range of my Gantt chart is from 01-01-2019 to 31-12-2019 and the current month is June so the Gantt chart visible month should be from June.

Thanks in advance.
Manisha

Hello Manisha,
You need to get the position of the current day by using the gantt.posFromDate() method and then scroll to that position with the help of the gantt.scrollTo() command. If you want to see the first day of the month, you can use the gantt.date.month_start() method.
Here are the examples of how it might work:
http://snippet.dhtmlx.com/71d17a9b9
http://snippet.dhtmlx.com/d6e2c89df
You can find more information about those methods in the following articles:
https://docs.dhtmlx.com/gantt/api__gantt_posfromdate.html
https://docs.dhtmlx.com/gantt/api__gantt_scrollto.html
https://docs.dhtmlx.com/gantt/api__gantt_date_other.html