My question:
How to define the pre script for UTC date format with adding 60 * 1000 milliseconds
Requirement - Calculate the Request Expiration in UTC format (Current date and time + 60 seconds)
Format - 2022-03-01T17:32:44.9559901Z
Below is the code in C# - RequestExpirationUTC":"{DateTime.UtcNow.AddMilliseconds(60 * 1000).ToString(“O”)}
I’ve already tried: I tried this
date = new Date(new Date().toUTCString())
console.log(date);
Out put - 2022-03-08T19:57:12.000Z