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
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
utc to local time javascript
var UTCDate = '6/29/2011 4:52:48 PM';
var localDate = new Date(UTCDate + ' UTC');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us