Muhammad Umer
Muhammad Umer

Reputation: 18159

How to convert any city/country combo to timezone in Nodejs?

Given a city and country, how do you find it's timezone correctly.

Upvotes: 0

Views: 267

Answers (2)

Muhammad Usman
Muhammad Usman

Reputation: 478

I have noticed momentjs is the best library for times/dates. Let me know if you are still looking for this answer, and I can help :)

Thank you very much!

Upvotes: 1

You can use google API for this see here.

The Location of your city/country should be in (longitude, latitude)

Upvotes: 0

Related Questions