Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Gantt › Date is changing Tagged: error, gantt, nextjs, react This topic has 1 reply, 2 voices, and was last updated 2 years, 10 months ago by svetoslav_borislavov. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts December 20, 2022 at 6:31 pm #104143 Jénnifer VillalobosParticipant 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! December 21, 2022 at 7:02 am #104146 svetoslav_borislavovParticipant 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/ Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In With Google Log In