title: Converting Timespan to DateTime in C#
body: <p>I am reading Excel worksheet data using C# and Microsoft.Office.Interop. The sheet contains some date values. When I am trying to read that value it is just giving the number (probably TimeSpan). I am having problem converting this number into DateTime.</p>
  
  <p>Below is the code:</p>
  
  <pre><code>TimeSpan ts = TimeSpan.Parse(((Range)ws.Cells[4, 1]).Value2.ToString());
  </code></pre>
  
  <p>Where <code>ws</code> is <code>Excel.WorkSheet</code>.</p>
  
  <p>Can anybody explain how should I convert this number (<code>TimeSpan</code>) into <code>DateTime</code>?</p>
  
  <p>Thanks for sharing your valuable time.</p>