title: ASP.net c# Parse int as datetime
body: <p>Given a time:</p>
  
  <blockquote>
    <p>1286294501433</p>
  </blockquote>
  
  <p>Which represents milliseconds passed since 1970, how do we convert this to a DateTime data type?  EG:</p>
  
  <pre><code>transactionTime = "1286294501433";
  UInt64 intTransTime = UInt64.Parse(transactionTime);
  DateTime transactionActualDate = DateTime.Parse(intTransTime.ToString());
  </code></pre>
  
  <p>Throws:</p>
  
  <blockquote>
    <p>String was not recognized as a valid
    DateTime.</p>
  </blockquote>
  
  <p>Please note all times passed into this function are guaranteed to be <em>after</em> 1970.</p>