I have a json structure with various dates inside of it.
start_date, end_date, another_start_date, another_end_date.
I want to display baselines based on the other two dates using this approach.
var startDateOriginal = gantt.date.parseDate(task.start_date_original, gantt.config.task_date);
var endDateOriginal = gantt.date.parseDate(task.end_date_original, gantt.config.task_date);
however this function always return a date with a month of January. the year and the day are corrent.
Hello,
Have you specified the task_date parameter? The default value of that parameter is "%d %F %Y". So that instead of Month number (e.g. 09) there is the full name of that month (e.g. October) and you might get the first month after value type conversion.