## DateTime::Equals(DateTime) const method


确定指定的 [DateTime](../) 类实例是否与当前对象表示相同的日期和时间值。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| other | DateTime | 用于与当前对象比较的 [DateTime](../) 类实例。 |

### ReturnValue

如果 **other** 与当前对象都表示相同的值，则为 true；否则为 false。

## 另见

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


确定指定的 [DateTime](../) 类实例是否表示相同的日期和时间值。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| t1 | DateTime | 第一个比较数 |
| t2 | DateTime | 第二个比较数 |

### ReturnValue

如果 **t1** 与 **t2** 都表示相同的值，则为 true；否则为 false。

## 另见

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