# Module: isDate

Assesses if the input is of the type Date.

import { isDate } from 'utilist';

isDate(new Date('2020-01-01')); // returns true
isDate('2020-01-01'); // returns false

remarks Date entities are remarkably hard to identify safely in JavaScript.

# Functions

# isDate

isDate(input: unknown): boolean

Defined in src/is-date.ts:22

Parameters:

Name Type Description
input unknown Any type of input is accepted.

Returns: boolean