# every()

## `areDate().every()`

Checks whether **every** provided [`value`](https://docs.angular-package.dev/type/are/aredate/pages/EHobj4KgMnkW3V1Tcvbi#...values-any) of [`areDate()`](/type/are/aredate.md) is a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).

{% hint style="info" %}
The method uses [`every()`](/type/are/aredeterminer/every.md) method of [`areDeterminer()`](/type/are/aredeterminer.md).
{% endhint %}

### Returns

The **return value** is a [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) indicating whether the provided [`values`](https://docs.angular-package.dev/type/are/aredate/pages/EHobj4KgMnkW3V1Tcvbi#...values-any) of [`areDate()`](/type/are/aredate.md) are [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).

## Example usage

```typescript
// Example usage.
import { areDate } from '@angular-package/type';

areDate(new Date(), new Date('invalid date')).every((result, value, payload) => {
  result // false
  value // [Sat Sep 11 2021 21:36:43 GMT+0200 (Central European Summer Time), Invalid Date]
  payload // undefined
  return result;
}); // false, boolean
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/type/are/aredate/every.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
