title: Why is this a Not a legal OleAut date with a TimeSpan of 100 hours and 100 minutes
body: <p>I'm trying to create a date from a <code>TimeSpan</code> that has 100 hours and 100 minutes but i'm gettin the error:</p>
  
  <blockquote>
    <p>Run-time exception (line 9): Not a legal OleAut date.</p>
    
    <p>Stack Trace:</p>
    
    <p>[System.OverflowException: Not a legal OleAut date.]    at
    System.DateTime.TicksToOADate(Int64 value)</p>
  </blockquote>
  
  <pre class="lang-java prettyprint-override"><code>using System;
  
  public class Program
  {
      public static void Main()
      {
          Console.WriteLine("Hello World");
          TimeSpan timeSpan = TimeSpan.FromHours(100) + TimeSpan.FromMinutes(100);
          var OADate = DateTime.FromOADate((DateTime.MinValue.AddTicks(timeSpan.Ticks)).ToOADate());
  
      }
  }
  </code></pre>
  
  <p>This is to link in with a legacy value in the db from vb6.</p>
  
  <p>It works with small hour and minutes values but fails with this, any ideas?</p>
  
  <p>Created a <a href="https://dotnetfiddle.net/dEttD1" rel="nofollow noreferrer">Fiddle</a></p>