# isValid Type documentation

## TypeScript declaration

### [isValid](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L766-L766>)

**Kind:** constant

```
import { isValid } from '@siemens/element-ng/datepicker';
```

Is valid date object.

```
(date?: Date | undefined) => date is Date = (date?: Date): date is NonNullable<Date> => !!date && !isNaN(date.getTime())
```

```
isValid(date?: Date): boolean
```

Is valid date object.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [date](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L766-L766>) (optional) | `Date` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)
