Lire le Format de Date en PHP EXCEL

J'ai lu fichier excel à l'aide de PHP excel .

Mais que le fichier excel contient une certaine date (format de l'heure) de PHP excel retour des valeurs erronées pour ce cas

Mon code est ci-dessous

enter code hereinclude 'Classes/PHPExcel/IOFactory.php';

$inputFileName = 'index.xlsx';

// Read your Excel workbook
try {
    $inputFileType = PHPExcel_IOFactory::identify($inputFileName);
    $objReader = PHPExcel_IOFactory::createReader($inputFileType);
    $objPHPExcel = $objReader->load($inputFileName);
} catch (Exception $e) {
    die('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME)
        . '": ' . $e->getMessage());
}

// Get worksheet dimensions
$sheet = $objPHPExcel->getSheet(0);
$highestRow = $sheet->getHighestRow();
$highestColumn = $sheet->getHighestColumn();

// Loop through each row of the worksheet in turn
for ($row = 1; $row <= $highestRow; $row++) {
    // Read a row of data into an array
    $rowData = $sheet->rangeToArray('A' . $row . ':' . $highestColumn . $row,
        NULL, TRUE, FALSE);

    foreach ($rowData[0] as $k => $v)
        echo "Row: " . $row . "- Col: " . ($k + 1) . " = " . $v . "<br />";
}

tout, on peut aider..
Ont certaines fonctions spécifiques, pour ce cas, PHPExcel..

Mon entrée fichier excel est en dessous de

2013-12-12,
2013-12-13

Mon résultat est en-dessous de

41621,
41631

Avoir une méthode pour convertir le format de date de sortie de données?

OriginalL'auteur | 2015-09-17