I primarly use Delphi in my workplace and during some thorough unit tests which involved comparing date times I discovered that a direct comparison using the equals operator was not reliable enough when comparing calculated dates etc. So as a rule I started using CompareDateTime and SameDateTime which are built in functions for date comparisons in Delphi.
In C# by force of habit I compare date/times using the standard operators =<>
. We have similar functions like DateTime.Compare and DateTime.Equals for date time comparisons therefore in terms of accuracy & reliability should I really be using the built in functions instead?
Will they give me a more accurate comparison that using the operator?