## DateTime::Equals(DateTime) const method


Determines if the specified instance of [DateTime](../) class represent the same date and time value as the current object.

```cpp
bool System::DateTime::Equals(DateTime other) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | DateTime | The instance of [DateTime](../) class to compare current object with |

### ReturnValue

True if both **other** and current object represent the same value, otherwise - false

## See Also

* Class [DateTime](../)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## DateTime::Equals(DateTime, DateTime) method


Determines if the specified instances of [DateTime](../) class represent the same date and time value.

```cpp
static constexpr bool System::DateTime::Equals(DateTime t1, DateTime t2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| t1 | DateTime | The first comparand |
| t2 | DateTime | The second comparand |

### ReturnValue

True if both **t1** and **t2** represent the same value, otherwise - false

## See Also

* Class [DateTime](../)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
