...than, equal to, or greater than the second datetime object.
The following code shows how to compare two datetime objects using the `Compare()` method:
```c#
int comparisonResult = today.Compare(anotherDateTime);
```
## Hashtags
* #Datetime
* #c#
* #Programming
* #dateandtime
* #datastructures