0

I currently have this code below in javascript but it is currently at it's default timezone which is PST but I want it to be UTC by default or a way to convert it to UTC.

What are some ways around it?

var now = new Date().getTime(); 
3

1 Answer 1

1

You can use var now = new Date().toISOString();

var now = new Date().toISOString(); console.log(now)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.