title: C# fileinfo class lastwritetime property
body: <pre><code>Byte[] mtime = new Byte[4];
  mtime = Encoding.ASCII.GetBytes(file.LastWriteTime.ToString());
  fs.Write(mtime, 0, mtime.Length);
  </code></pre>
  
  <p>The code is stored as a binary file like "2016-01-15 ?? 5:45:11" &lt;--</p>
  
  <p>I want to know if 'Lastwritetime' have certain properties.</p>
  
  <p>only get date. like "20160115"</p>