Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert js date to utc

var UTCdate = new Date('4/29/2021 3:22:46 PM UTC');
console.log(UTCdate)
 // console.log(new Date('2020-1-1'+'UTC'));
// output 
// Thu Apr 29 2021 21:07:46 GMT+0545 (Nepal Time)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #js #date #utc
ADD COMMENT
Topic
Name
9+1 =