Convert date to another timezone in JavaScript

I am looking for a function to convert date in one timezone to another.

It need two parameters,

  • date (in format “2012/04/10 10:10:30 +0000”)
  • timezone string (“Asia/Jakarta”)

The timezone string is described in http://en.wikipedia.org/wiki/Zone.tab

Is there an easy way to do this?

29 Answers
29

Leave a Comment