Edit

Share via


DateOnly.Equality(DateOnly, DateOnly) Operator

Definition

Determines whether two specified instances of DateOnly are equal.

C#
public static bool operator ==(DateOnly left, DateOnly right);

Parameters

left
DateOnly

The first object to compare.

right
DateOnly

The second object to compare.

Returns

true if left and right represent the same date; otherwise, false.

Applies to

Product Versions
.NET 6, 7, 8, 9, 10