Checks if the given value is a valid Date (opens in a new tab) object.
Syntax
import { isDate } from '@opentf/std';
isDate(val: unknown): boolean;
Examples
isDate(new Date()) //=> true
isDate(new Date('')) //=> false
isDate('2000-01-01') //=> false