Determines whether the provided value is a valid Date object.
Date
The value to be checked.
true if the value is a valid Date, otherwise false.
true
false
This function ensures that the value is a Date instance and that its internal time value is valid (i.e., not NaN).
NaN
new Date()
new Date('invalid')
'2026-04-10'
Date.now()
1.0
isDate
Determines whether the provided value is a valid
Dateobject.