I need to convert hours and minutes in minutes values. With pure JavaScript Date object I do the following:
var d = new Date(); var minutes = d.getHours() *
For those seeking to get minutes from an existing Moment object, you can first format it to whatever you need, then use duration to get its duration in minutes:
Moment
duration
moment.duration(myMomentObjectToConvert.format("HH:mm")).asMinutes()