title: handling null values of datetime
body: <p>I have a Linq query , which consists of this datetime field i'm extracting from database</p>
  
  <pre><code>           TerminationDate = base.ConvertFromUtcToCentral(r.TerminationDate.ToString())
  </code></pre>
  
  <p>the function used is designed like this</p>
  
  <pre><code>           public DateTime ConvertFromUtcToCentral(string UtcTime)
      {
  
          if (UtcTime != "")
          {
              DateTime?  retValue = TimeZoneInfo.ConvertTimeFromUtc(Convert.ToDateTime
                                                         (UtcTime), USTimeZones.Central);
  
              return Convert.ToDateTime(retValue);
          }
          else
              return Convert.ToDateTime(null);
  
      }
  </code></pre>
  
  <p>But whenever i return null it shows up the min date in the grid that i assign this query to. However, when it is null, it should just showup null instead of min date. can you please let me know how i can handle this?Also let me knoww if using ternary operator is a better idea.</p>
  
  <p>Restrictions: Can't change the function retrun type as it is used in several places</p>