Invalid date in IE11, not in Chrome

I keep getting Invalid Date errors in IE11 on start_date and end_date on my tasks.


The data comes from an Ajax call to a grid, and strings are returned like: “2018-03-29 00:00:00.0”. I then strip the time via substring to get “2018-03-29”.


gantt.config.xml_date is set: gantt.config.xml_date = “%Y-%m-%d”;

This works like a charm in Chrome. What am I missing?

Thank you.

Okay found the problem, which wasn’t related to the date fields (which are still indicated as Invalid Date in IE by the way). Was using includes function which IE didn’t like…