Skip to main content
function isDate
isDate(object: unknown): object is Date
Deprecated

Returns true if the value is a built-in Date instance.

util.types.isDate(new Date());  // Returns true

Parameters

object: unknown

Return Type

object is Date
Back to top