 <p><code>File.GetCreationTime(pstFileFolder)</code> will return you <code>CreationDate</code> for folder, and you will get the same value back for all files. Instead use:</p> <pre><code>string fileCreatedDatey = File.GetCreationTime(file).Date.ToString("yyyy-MM-dd"); </code></pre>