Stackoverflow from 17 years ago claims the best way of checking whether `new Dat...

@mcc@mastodon.social

Stackoverflow from 17 years ago claims the best way of checking whether `new Date("input string here")` in JS returned a valid date is to run isNan() on the return value. Is that correct?

stackoverflow.com/questions/13