Answers for "create ISO date in javascript in a certain timezone"

5

get iso date javascript

var isoDate = new Date().toISOString()
Posted by: Guest on June-05-2020
15

javascript set date to timezone

var d = new Date("2020-04-13T00:00:00.000+08:00"); /* midnight in China on April 13th */
d.toLocaleString('en-US', { timeZone: 'America/New_York' });
//=> "4/12/2020, 12:00:00 PM"
// (midnight in China on April 13th is noon in New York on April 12th)
Posted by: Guest on June-17-2020

Code answers related to "create ISO date in javascript in a certain timezone"

Code answers related to "Javascript"

Browse Popular Code Answers by Language