## 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.Page for C++](../../../)
## DateTime::Equals(DateTime, DateTime) method


指定された [DateTime](../) クラスのインスタンスが同じ日付と時刻の値を表すかどうかを判定します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| t1 | DateTime | 最初の比較対象 |
| t2 | DateTime | 2 番目の比較対象 |

### ReturnValue

**t1** と **t2** の両方が同じ値を表す場合は true、そうでなければ false

## 参照

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