Check if a string is a date value is a duplicate of Detecting an "invalid date" Date instance in JavaScript.
This comment states so and 6 users (including me) agree.
My flag was declined by one gold-badge user.
Whilst the question may be different, the solutions are cross-compatible.