Sprawdź, czy ciąg godziny daty jest prawidłową datą w JS

const isValidDate = function(date) {
    return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date));
}
Anxious Alligator