Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m/d/Y date format parsed incorrectly #3139

Closed
parmonov98 opened this issue Apr 27, 2021 · 3 comments
Closed

m/d/Y date format parsed incorrectly #3139

parmonov98 opened this issue Apr 27, 2021 · 3 comments
Labels

Comments

@parmonov98
Copy link

1️⃣ Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before? (Currently 3.1.x)
3.1
2️⃣ What version of the package, Laravel and PHP do you use? Please provide the FULL version number.
laravel 8.12, php 7.4,
3️⃣ Describe your issue. Please be short, but concise.
I don't understand how I 'm getting the marked value in dd output.

m/d/Y date format parsed incorrectly

image

4️⃣ How can the issue be reproduced? Please provide easy-to-reproduce steps (repository, simple code example, failing unit test).
create a cell with m/d/Y date format and impoirt it. it is converted automatically to some number.
5️⃣ What should be the expected behaviour?
3/31/2021 in my case

6️⃣ Have you filled in the entire issue template? If not, your issue will be closed. Thanks for using the package! 🙌
yes

@parmonov98 parmonov98 added the bug label Apr 27, 2021
@patrickbrouwers
Copy link
Member

Please report to phpspreadsheet, we don't do any date handling.

@leyvicaz
Copy link

@parmonov98
see this comment #1832 (comment).

@miraclegly
Copy link

try it $tmp = \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($date);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants