Parse UTC date time with angular-moment2

276 Views Asked by At

I have basically a date '2017-08-03T05:46:35.046328Z' & I want to parse this using angular 2 - moment in this format 'MM/DD/YYYY 12.00AM/PM.

1

There are 1 best solutions below

0
On
moment('2017-08-03T05:46:35.046328Z').format('MM/DD/YYYY h:mm a')

I hope you have managed to include angular-moment into your project.