There is a startTime being set from the innerText of an element. This string is then converted to a Moment.js object using moment(startTime). How is this then converted into a number value as minutes?
Javascript
startTime = document.querySelector(".start-time").text;
startTime = moment(startTime);
console.log(startTime)
console.log
Moment {_isAMomentObject: true, _i: "08:03:03 PM", _isUTC: false, _pf: {…}, _locale: Locale, …}
_d: Invalid Date {}
_i: "08:03:03 PM"
_isAMomentObject: true
_isUTC: false
_isValid: false
_locale: Locale {_calendar: {…}, _longDateFormat: {…}, _invalidDate: "Invalid date", _dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: ƒ, …}
_pf: {empty: false, unusedTokens: Array(0), unusedInput: Array(0), overflow: -2, charsLeftOver: 0, …}
__proto__: Object
Update (solution): for anyone who might find helpful
startTime = moment.duration(startTime).asMinutes();