Is there a javascript library that can handle time zone conversions (and takes DST rules and such stuff into account)? I know there are similar questions, but none of the ones I have seen seem to have an answer that really fits my question.
I would like to create a date in time zone A and be able to manipulate it (add days, hours and stuff like that) and then convert it to another time zone B. There must be a lot of people that need this kind of functionality, so I guess there should be some library out there that I haven't found.
Best Answer
MOMENT - A 5kb javascript date library for parsing, validating, manipulating, and formatting dates.
moment().zone(); this is the function you will be wanting.
You can also try out datejs, however i prefer moment library, they have good docs, and maintains delicious code.