aakriti1711
aakriti1711

Reputation: 44

Parse UTC date time with angular-moment2

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

Answers (1)

Dave Ranjan
Dave Ranjan

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

Related Questions