title: C# can't compare two datetimes properly
body: <p>I'm new to C# and I'm trying to write a simple console application. I have two datetimes but I can't get the message <code>Same</code>, It keeps printing <code>Different</code>.</p>
  
  <p>I also print the two datetimes in the console to know if they are different, but even when the system time is the same it doesn't satisfy the condition.</p>
  
  <pre><code>static void Main(string[] args)
  {
      while (true)
      {
          Thread.Sleep(1000);
          DateTime dt1 = DateTime.Now;
          DateTime dt2 = DateTime.Parse("06:30:00 AM");
  
          if (TimeSpan.Compare(dt1.TimeOfDay, dt2.TimeOfDay) == 0)
          {
             Console.WriteLine("Same");
          }
          else
          {
             Console.WriteLine("Different");
          }
  
          Console.WriteLine(dt1);
          Console.WriteLine(dt2);
     }
  }
  </code></pre>