---
title: "Aspose::Email::Tools::Search::DateComparisonField::Greater method"
url: "https://reference.aspose.com/email/cpp/aspose.email.tools.search/datecomparisonfield/greater/"
product: "Aspose.Email for C++"
description: "Indicates that date in message must be later than the specified date."
---


## Greater (1 of 2) {#greater_1}

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

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

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

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

---

## Greater (2 of 2) {#greater_2}

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

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

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

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

