Back
I wonder if it is possible to fetch hours, minutes and seconds from Moment object?
for example:
Moment('12:16','HH:mm').get('minutes') //should result in '16'
I can't find anything like that in documentation though...
You can try the following:-
Moment('12:16','HH:mm').minutes();
Or you can use the following option - use format('mm'). It will return '16' in a string format.
31k questions
32.8k answers
501 comments
693 users