I have a DateTime field in popup modal as below that is supposed to only show the time part:
HTML:
I ended up with changing my formatDate method to following:
formatDate(date: any, format: string): string {
return moment.utc(date.toString()).local().format(format);
}
It show the local time when getting the value from DB, but now the issue is when updating its value. When I save the form it considers the date to a local time and everytime it deducts 10:30 from it and then send to the server!
Here is the scenario: