I want to convert UTC time to specific timezone using angular DatePipe
.
Without appending timezone, transform
method converts UTC to local time which i don't want. here's the code.
punch_time = this.datepipe.transform('2021-02-05T06:03:40.574000Z', 'shortTime');
above code gives output of 11:33 AM
. which is local time.
instead i want to get time in specific timezone for example UAE - Dubai
time.
How to do this?