Given a date and time parameters, I am interested in determining whether that date/time is greater than the current date at 17:30.
I am hoping to achieve this using moment js. Do you think it's possible?
This is what I have been attempting:
let referenceDate = moment(new Date()).set({hour:17,minute:30});
let inputDate = moment(myDate).set({hour:paramHour,minute:paramMinute});
if (inputDate.isAfter(referenceDate)) {
console.log('true');
}
Thank you!