Skip to content
Advertisement

Convert ISO Date to UTC Time using JavaScript

I have an ISO Date string and using Javascript, I’d like to extract the time from it.

How can I turn 2016-07-02T19:27:28.000+0000 into 7:27 pm? I have tried Date.Parse with little success

Advertisement

Answer

You can use moment.js, it´s the best date library I have worked with.

Advertisement