title: php fgetcsv read date in different format
body: <p>In csv cell contain date in format <code>31-Mar-90</code>. Now If that csv created on Windows + MS Excel 2007, my php scripts shows in same format ie: <code>31-Mar-90</code> but if same date format added in csv that created on some other platform then php shows like: <code>31 Mar 1990</code></p>
  
  <p>script is</p>
  
  <pre><code>$row = 1;
  if (($handle = fopen($filename, "r")) !== FALSE) {
      while (($data = fgetcsv($handle, 0, ",")) !== FALSE) { //Reading the file
         $num = count($data);    
         for ($c = 0; $c &lt; $num; $c++) {
             $csvData[$row][$c] = $data[$c];
         }    
         $row++;
     }            
     fclose($handle);
  }
  var_debug($csvData);
  </code></pre>
  
  <p>and once I open &amp; save csv (created in other platform) in Windows MS-Excel 2007, php outputs <code>31-Mar-90</code> which is my requirement.</p>
  
  <p>Here is csv: <img src="https://i.stack.imgur.com/D3lEB.gif" alt="enter image description here"></p>