## DateTime::operator==(DateTime) const method


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

```cpp
bool System::DateTime::operator==(DateTime other) const
```


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

### ReturnValue

如果当前对象和指定对象表示相同的日期和时间值，则为 true；否则为 false

## 另见

* Class [DateTime](../)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## DateTime::operator==(std::nullptr_t) const method




```cpp
bool System::DateTime::operator==(std::nullptr_t) const
```

## 另见

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