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

Usage in Deno

```typescript import { isDate } from "node:node__util--types.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