
## NotOn (1 of 2) {#noton_1}

Indicates that the date in message must not be in the specified date.

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

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

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

---

## NotOn (2 of 2) {#noton_2}

Indicates that the date in message must not be in the specified date.

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

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

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

