i\'m using moment.js with timezones for date manipulation in a webapp. i\'m storing all the dates in UTC and return them to UI as UTC. I\'m having the timezone of the user.
Use the + operator to get unix time, then:
moment(+moment.utc(utcDate))
How it works:
moment.utc(String) parses the string and returns a moment object set to UTC timezone.+ returns the unix offset in milliseconds for the moment obejctmoment(Number) creates a new moment object in the user's local time zone, using the passed in unix offset.