Concepts
Invalid Date
Date object with a NaN internal time value. It is still truthy; toISOString throws RangeError, while toJSON returns null.
Formal Syntax & Structure
javascript syntaxjavascript
Number.isNaN(date.getTime())Working Example
Example Snippetjavascript
const d=new Date(NaN);console.log(Number.isNaN(d.getTime()),d.toJSON());