title: How to get file created date using fs module?
body: <p>I have linux server where i have logs file that are being created with winston rotation , so <code>filename</code> has filename and created date, so you can see first file in <code>data</code> <code>server20170414181405.log</code> created on <code>2017-04-14</code> but using <code>fs.stats.birthtime</code> its giving fileDate <code>Apr-19-2017</code>. How can i get accurate file created date working on linux ?</p>
  
  <p>cron.js</p>
  
  <pre><code>fs.stat(filePath, function (err, stats) {
    if (err) return cb2(err);
     var fileInfo = { fileDate: stats.birthtime, filename: file };
      console.log(fileInfo);
  });
  </code></pre>
  
  <p>data </p>
  
  <pre><code>  { fileDate: Wed Apr 19 2017 00:51:56 GMT-0400 (EDT),
      filename: 'server20170414181405.log' },
    { fileDate: Wed Apr 19 2017 00:52:04 GMT-0400 (EDT),
      filename: 'server20170414212655.log' },
    { fileDate: Wed Apr 19 2017 00:52:07 GMT-0400 (EDT),
      filename: 'server20170415023845.log' },
  </code></pre>