Javascript Date toUTCString()

Introduction

Javascript Date toUTCString() displays the complete UTC date in an implementation-specific format.

The output of this method varies from browser to browser.

dateObj.toUTCString()
let today = new Date('Wed, 14 Jun 2020 00:00:00 PDT');
console.log(today);//from  ww  w . j  a va  2s .com
let d = today.toUTCString();
console.log(d);



PreviousNext

Related