i 3 given times, i want to check if myTime is in between start time and end time.
import moment from "moment";
const startTime= moment("18:45", "hh:mm").format("hh:mm a");
const endTime = moment("09:30", "hh:mm").format("hh:mm a");
const myTime= moment("19:00", "hh:mm").format("hh:mm a");
console.log(startTime, endTime , myTime);
// starttime 18:45
// endTime 09:30
console.log(moment(myTime).isBetween(startTime, endTime ))