Reputation: 44
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.
Upvotes: 0
Views: 275
Reputation: 2994
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.
Upvotes: 1