js check if date object is invalid

Solutions on MaxInterview for js check if date object is invalid by the best coders in the world

showing results for - "js check if date object is invalid"
Flore
23 Jul 2019
1const isValid = !Number.isNaN(new Date(timestamp).getTime())
Emilio
04 Jan 2017
1const validDate = !isNaN(Date.parse('foo'))
2