But the time is correct but the date always wrong
For example, I chose today in Calendar, but the Date always Jan/01/2020
How can I fix this issue?
Re: [ANGULAR] Wrong DateTime when open Event Editor
Posted: Wed Jun 02, 2021 2:55 pm
by saki
These are two separate date objects: one for date part with ignored time and one for time part with ignored date. So the correct endDate is the combination of both. The correct date is calculated when you click Save.
What do you need it for? Maybe we can suggest another approach.
Re: [ANGULAR] Wrong DateTime when open Event Editor
These are two separate date objects: one for date part with ignored time and one for time part with ignored date. So the correct endDate is the combination of both. The correct date is calculated when you click Save.
What do you need it for? Maybe we can suggest another approach.
Ya, the Date is correct when I click Save, but the Time is wrong.
I changed the endTime but it's always 1 hour from startTime
These are two separate date objects: one for date part with ignored time and one for time part with ignored date. So the correct endDate is the combination of both. The correct date is calculated when you click Save.
What do you need it for? Maybe we can suggest another approach.
I need the correct DateTime ( both Date and Time ) when I change the Time to set it to my model to update later
Re: [ANGULAR] Wrong DateTime when open Event Editor