I am calling an API that returns a date/time string such as "2014-04-30 15:32:01"
. On top of this, I have a known timezone that this date/time exists in. I can see from the javascript Date()
class has a .UTC()
call for this, but that does not seem to accept a timezone as far as I can tell.
Given the date/time string + timezone, how can I convert those into a UTC timestamp?