Answers for "convert utc to local time"

SQL
6

convert utc to date

var UTCdate = new Date('4/29/2021 3:22:46 PM UTC');
var onlyDate = UTCdate.getDate();
console.log(onlyDate); //Gives 29

//Please don't forget to upvote if this answer helped you ! Have a nice day !!
Posted by: Guest on May-21-2021
1

sql server utc to local

SELECT
	['TIME COLUM TO CONVERT'] AS [UTC_TIME],
	DATEADD(hh, DATEDIFF(hh, GETUTCDATE(), GETDATE()),['TIME COLUM TO CONVERT']) AS [lOCAL_TIME]
FROM ['TABLE NAME']
Posted by: Guest on December-17-2020
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 "convert utc to local time"

Code answers related to "SQL"

Browse Popular Code Answers by Language