lundi 23 octobre 2017

Laravel excel import date format issue in windows

I am using laravel 5.1 I need to import excel to process some data. I have to process date which is entered in excel. For ubuntu os its working fine. For windows os date column interchanging while loading the excel. For example If I upload excel with date 20-11-2017 means the loaded value will be 11-20-2017 it is wrong. Can please anyone help me to fix this issue. My code given below. I am using "maatwebsite/excel": "~2.0.0".

Excel::load($file, function($reader) {
        $details = $reader->formatDates(true)->toArray();
    });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire