System::DateTime::Equals method

DateTime::Equals(DateTime) const method

Determines if the specified instance of DateTime class represent the same date and time value as the current object.

bool System::DateTime::Equals(DateTime other) const
ParameterTypeDescription
otherDateTimeThe 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

DateTime::Equals(DateTime, DateTime) method

Determines if the specified instances of DateTime class represent the same date and time value.

static constexpr bool System::DateTime::Equals(DateTime t1, DateTime t2)
ParameterTypeDescription
t1DateTimeThe first comparand
t2DateTimeThe second comparand

ReturnValue

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

See Also