In my Angular application I am trying to use Datepipe to convert date into GMT format and display. I see in a blog that Datepipe uses systems locale to convert the date. How can I convert into GMT.
Assuming the date is 6/19/2023 12:00:00 AM, I want to dislay XXXXX (gmt-5) I tried following code snippet which is not working.
new Date(datePipe.transform(new Date(6/19/2023 12:00:00 AM, 'MM/DD/YY'))