title: Type of conditional expression cannot be determined because there is no implicit conversion between System.DateTime and null
body: <pre><code>DateTime tempDate = calculatesomedatetime();
  someDateTimeControl.Value = null; //no issue
  someDateTimeControl.Value = (tempDate &gt; DateTime.MinValue)? tempDate : null;
  </code></pre>
  
  <blockquote>
    <p>Type of conditional expression cannot be determined because there is no implicit conversion between System.DateTime and null</p>
  </blockquote>
  
  <p>Line 3 throwing me such error which I don't understand as the comparison is <code>(tempDate &gt; DateTime.MinValue)</code> and <code>null</code> is just value assignment. Why would compiler interpret this as error?</p>
  
  <p>However if I write as below, it has no problem</p>
  
  <pre><code>if(tempDate &gt; DateTime.MinValue)
  {
      someDateTimeControl.Value = tempDate;
  }else
  {
      someDateTimeControl.Value = null;
  }
  </code></pre>