We have a current time called 11:10 PM as the string value. We will create a date object with this time. Now from this date can we get the timezone for this date value?
We are expecting the timezone like Asia/Kolkata, etc. Is it possible to get this value in NodeJS/MomentJS
You can get the timezone of the machine running the code, using Intl.DateTime.resolvedOptions
If you run this in Node.js you'll get the server timezone, any client running the code in a browser will see their timezone.