84
rated 0 times
[
87]
[
3]
/ answers: 1 / hits: 22592
/ 10 Years ago, fri, january 9, 2015, 12:00:00
I have an ISO 8601 formatted duration, for eg: PT5M or PT120S.
Is there any way I can parse these using moment.js and fetch the number of minutes specified in the duration?
Thank you!
PS: I looked at Parse ISO 8601 durations
and Convert ISO 8601 time format into normal time duration
but was keen to know if this was do-able with moment.
More From » momentjs