Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104143

    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!

    #104146

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.