what is the best way of getting current time in selected timezone as Date Object. I am using Following code to get current time at selected timezone in react native.
Eg. new Date().toLocaleString('en-US', { timeZone: 'Indian/Christmas' })
The output of this code is a string but I need it in Date Object. Every time I convert back to New Date() , it takes default timezone but I need custom timeZone. I also tried using moment library and momentTimeZone bu could not get correct output. Anyone can help me with this