Skip to main content
types.isDate - node__util.d.ts - Node documentation
function types.isDate

Usage in Deno

```typescript import { types } from "node:node__util.d.ts"; ```
isDate(object: unknown): object is Date
Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. ```js util.types.isDate(new Date()); // Returns true ```

Parameters

object: unknown

Return Type

object is Date