Answers for "javascript convert utc to local time"

1

utc to local time javascript

var UTCDate = '6/29/2011 4:52:48 PM';
var localDate = new Date(UTCDate + ' UTC');
Posted by: Guest on September-06-2021
1

javascript convert utc to local time

var date = new Date('6/29/2011 4:52:48 PM UTC');
date.toString() // "Wed Jun 29 2011 09:52:48 GMT-0700 (PDT)"
Posted by: Guest on May-18-2021

Code answers related to "javascript convert utc to local time"

Code answers related to "Javascript"

Browse Popular Code Answers by Language