
## Before (1 of 2) {#before_1}

Indicates that the date in message must be earlier than the specified date.

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

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

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

---

## Before (2 of 2) {#before_2}

Indicates that the date in message must be earlier than the specified date.

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

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

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

