How can I parse timestamps in ISO 8601 format?

I use an api that returns timestamps in this format: 

2025-04-10T18:21:47.779Z
Is there a way to parse this into a Moment or unix timestamp?
The best idea I could come up with is to read the parts with substring, then convert to Number, then create a dictionary and then 
var options = {
    :year   => 2025,
    :month  => 4,
    :day    => 10,
    :hour   => 18,
    :minute => 21,
:second => 47
}; var timestamp = Gregorian.moment(options);


But all this would almost double the datafield.... so the best I could come up with is to store the timestamps as a string,
and compare them as a string.