title: PHPExcel detect if the cell value is formated to date or not
body: <p>Good day guys 
  i have a problem on how to detect if the cell value is formated to  date or not 
  when i been upload a date value i use this code</p>
  
  <pre><code>$data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row);
  </code></pre>
  
  <p>when a cell value is formated into date the value is <code>$data = 27474</code> when is not <code>$data = 12/2/1983</code>  then i use this code to format their date     </p>
  
  <pre><code>if(PHPExcel_Shared_Date::isDateTime($data)){
             $cellValue = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();
             $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue);                        
             $dob =  date('Y-m-d',$dateValue);    
      }                               
  </code></pre>
  
  <p>now, the problem is    when <code>$data</code> is in formated on date this code is OK but when <code>$data</code> is not formated the value is <code>$data = 2036-02-18</code> which is wrong value</p>
  
  <p>can anyone help me how to resolve this problem Thanks in Advance</p>