Error in date Laravel Excel

1

I'm using the Laravel Excel library and so far I've done well in many different file formats, etc ... The thing is that now I have the following case:

In the excel file they pass me a date in dd / mm / yyyy format and without treating it or anything I do a dd ($ sheet- > toArray ()); of all the contents of the file and he says that the date is 01-01-1900 very strange, does anyone know what is that? Or how can I do to indicate a format by default? Or that I simply take that value as a string instead of Carbon ??

CAPTURE:

    
asked by RuralGalaxy 07.10.2016 в 14:16
source

1 answer

0

In the end I saw that unlike other sites where I used the function I noticed that in this case I was using two global variables and in the other cases only one.

I took it away for a moment and tried to load it and I painted the date well, I returned to leave everything as it was and it worked ... Very curious.

Excel::selectSheetsByIndex(0)->load($url, function ($sheet) use($code, $account){

 }

I have removed the variable $ account from within the use and without much wanted to work.

    
answered by 10.10.2016 / 11:48
source