in C# i can use DateTime.UtcNow.AddMinutes((-1) * 300); but how can i achieve the same result in Typescript? I am using var dummydate: any = new Date().toUTCString(); to convert it in UTC. Again if i change the dummydate from string to date. This does not preserver the UTC TimeZone. After conversion you get the date in your local timezone. Hence Setminutes is applied on local time zone not on UTC.
Himani