JS Date Object calculate if sendout time is in less than one hour

I'd suggest simply subtracting the current date (using Date.now()) from the dispatch date.

If this is under the threshold duration, it's 'due' or 'close':

function isDispatchDateClose(dispatchDate, thresholdMs = 3600 * 1000) {
    if (!dispatchDate) {
        return false;
    }
    const timeToDispatchDateMilliseconds = Date.parse(dispatchDate) - Date.now();
    return (timeToDispatchDateMilliseconds <= thresholdMs);
}

let dispatchDates = [0, 30, 45, 90, 120].map(offsetMinutes => new Date(Date.now() + offsetMinutes * 60000).toLocaleString('sv'));
console.log('Dispatch Date', '\t\t', 'Is Close ( < 1 hr to go)');
for(let dispatchDate of dispatchDates) {
    console.log(dispatchDate, '\t', isDispatchDateClose(dispatchDate))
}
        
.as-console-wrapper { max-height: 100% !important; top: 0; }