JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Gantt › Date is changing
Tagged: error, gantt, nextjs, react
Hello there, I’m working again on my Gantt and now I have this trouble:
My task is set to be from 2022-12-02 to 2022-12-09 This data comes from my DB, but when I pass it to my Gantt, is shown like: 2022-12-01 to 2022-12-08
It is reducing a day and I can’t understand why is this happening,
Thanks in advance!
Hi,
In what format does the date come from the DB?
The getMonth() method of the date object returns a zero-based value.
Please share an example date object from the DB and how you parse it to JS Date object or how you pass it to the gantt
Best Regards, Svetoslav Borislavov
Smart UI Team https://www.htmlelements.com/