Struggling with converting a Rails timestamp into a usable format for JavaScript.
When alerting the time of an event, the string produced is: 2016-02-18T23:07:00.000-08:00
. It doesn't appear to be a UTC string, according to this resource, and I'm unsure of the time format.
Attempted to convert using this method:
var t = "2016-02-18T23:07:00.000-08:00"
var u = t.to_time
However, this returns "undefined." Seeking to convert this string in JavaScript to seconds or milliseconds. Is it achievable?