I know how to change new Date() to UTC time by doing new Date().toUTCString() But I want to take it a step further by getting the UTC time and THEN changing it into milliseconds since Jan. 1, 1970.
I tried
new Date().toUTCString().getTime()
but it says that .getTime() is not a function for the date after it is converted to UTC time. Is there any real solution?