Equals()

DateTime::Equals(DateTime) const method

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

constexpr bool System::DateTime::Equals(DateTime other) const

Arguments

ParameterTypeDescription
otherDateTimeThe instance of DateTime class to compare current object with

Return Value

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

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)

Arguments

ParameterTypeDescription
t1DateTimeThe first comparand
t2DateTimeThe second comparand

Return Value

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

See Also