
## BeforeOrEqual (1 of 2) {#beforeorequal_1}

Indicates that the date in message must be earlier or equel to the specified date.

**Returns:** MailQuery that represents search query (one searching criterion).

```cpp
BeforeOrEqual(System::DateTime value)
```

| Parameter | Description |
| --- | --- |
| value | The value. |

---

## BeforeOrEqual (2 of 2) {#beforeorequal_2}

Indicates that the date in message must be earlier or equel to the specified date.

**Returns:** MailQuery that represents search query (one searching criterion).

```cpp
BeforeOrEqual(System::DateTime value, DateComparisonType comparisonType)
```

| Parameter | Description |
| --- | --- |
| value | The value. |
| comparisonType | Specifies a type of comparison |

