-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Incorrect Date Parsing for mm-dd-yyyy Format, Defaults to Current Date #319
Comments
Thank you for contributing to Poiji! Feel free to create a PR If you want to contribute directly :) |
Hi @Bucephalus-lgtm , You can check what format number for the date cell is used with https://github.com/ozlerhakan/poiji?tab=readme-ov-file#debug-cells-formats and once you have the number, you can update it with this step: https://github.com/ozlerhakan/poiji?tab=readme-ov-file#modify-cells-formats. |
Hello @ozlerhakan Thanks for the quick response! Moreover, I must keep the date fields as Thank you for your assistance. |
Consider using dateFormatter to change the default format in your own PoijiOptions object. |
Correct, closing the issue hereby. |
I have an Excel file where I have set a date field in the
mm-dd-yyyy
format. When I try to parse this file usingPoiji.fromExcel(<file_path>, Class<T>)
in my Java Spring Boot project, the date field is set with the value of the current date instead of the actual date from the file. I suspect that this issue arises because Poiji uses the defaultdd/M/yyyy
format for date parsing.Is there a way to make Poiji handle date fields more flexibly? Ideally, as long as the field type is marked as
Date
, the format of the date should not matter. Can Poiji be configured to recognize and correctly parse various date formats without explicitly specifying each one?Thank you for your assistance.
The text was updated successfully, but these errors were encountered: