Answers for "react native get timezone"

1

react native get timezone

var date = new Date();
var offsetInHours = date.getTimezoneOffset() / 60;
Posted by: Guest on April-08-2021
0

react native get timezone

import DeviceInfo from 'react-native-device-info';
console.log(DeviceInfo.getTimezone());   //   'America/New_York'
Posted by: Guest on April-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language