javascript convert utc to local time

Solutions on MaxInterview for javascript convert utc to local time by the best coders in the world

showing results for - "javascript convert utc to local time"
Lotta
19 Apr 2020
1var UTCDate = '6/29/2011 4:52:48 PM';
2var localDate = new Date(UTCDate + ' UTC');
Bianca
20 Sep 2017
1var date = new Date('6/29/2011 4:52:48 PM UTC');
2date.toString() // "Wed Jun 29 2011 09:52:48 GMT-0700 (PDT)"