title: How to compare two files based on datetime?
body: <p>I need to compare two files based on datetime. I need to check whether these two files were created or modified with same datetime. I have used this code to read the datetime of files...</p>
  
  <pre><code>string fileName = txtfile1.Text;
  var ftime = File.GetLastWriteTime(fileName).ToString();
  string fileName2 = txtfile2.Text;
  var ftime2 = File.GetLastWriteTime(fileName2).ToString();
  </code></pre>
  
  <p>Any suggestions?</p>