Could you write here as a reply how exactly would like to format your date?
Right now it is - Tue, Aug 02 2022, 10:10
So please rewrite how would you like it to look in your chart, and then I will come up with a solution.
yes this is exactly what i wanted but in my angular code it is not changing though its working in your code. in my package.json moment is there
"moment": "^2.29.3",
I am using inverted x axis gantt chart
Last edited by eraka on Tue Aug 02, 2022 12:45 pm, edited 1 time in total.
To achieve what you need, you have to play around with the timestamps and timezones. The demo below should work in your timezone correctly, but to make it work in other timezones, please read more about the Date object in JavaScript (more specifically about timezones).
Date.UTC() and new Date return different values. Compare the demos I've sent you and adjust your max calculation. You can read more about it in the MDN link above.