Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • have you tried momentjs.com ? Commented Jan 24, 2014 at 8:20
  • Let me see if i've understood your siutation. You have a timezeon A and you want to get the time difference between other timezone B. My questión is... your variable are the two timezones, hence both time zone will be changer often? or only one of this timezone may change, for example there is a client with a timezone and you just one to know the time difference from the client to your server?
    – user688877
    Commented Jan 24, 2014 at 11:40
  • only one timezone will change...Server's timezone is fix it's UTC 0. When client timezone is Asia/Kolkata in that case I want offset of that timezone (means -330 minutes ). Commented Jan 25, 2014 at 9:49
  • Maybe my es-date-fiddler library is useful. Check the demo (search for timeDiffToHere or timeDiffToUTC).
    – KooiInc
    Commented Mar 2 at 16:27