Calculate gantt start_date and end_date?

I have a gantt with around 30 tasks and around 15 links.

In the gantt config, I don’t set the start and end date, this is automatic.

I need calculate start and end date from gantt.

That is possible? Exists some way to be this?

Regards from Argentina!

you can use gantt.getState() method, it will return object containing start and end dates of scale (state.min_date, state.max_date)

Thanks! This works.