Answers for "how to get indian time from utc in js"

3

javascript get utc time

const now = new Date()

// UTC Date String
now.toUTCString() // "Sun, 30 May 2021 14:59:15 GMT"

// ISO String
now.toISOString() // "2021-05-30T14:59:15.449Z"

// Unix timestamp
Math.floor(now / 1000) // 1622386878
Posted by: Guest on May-30-2021
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language