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

How to avoid Excel date and date-time format? #334

Open
livingstone1 opened this issue Mar 24, 2025 · 1 comment
Open

How to avoid Excel date and date-time format? #334

livingstone1 opened this issue Mar 24, 2025 · 1 comment

Comments

@livingstone1
Copy link

livingstone1 commented Mar 24, 2025

My options:
PoijiOptions options = PoijiOptions.PoijiOptionsBuilder.settings() .preferNullOverDefault(true) .dateTimeFormatter(DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm:ss")) .build();

Known, that excel stores date and date-time values as doubles..
I set custom dateTimeFormatter and expect it in PoijiDataFormatter#formatRawCellContents, but this method uses format from Excel
Image

And DefaultCasting#localDateTimeValue method will try to parse string with Excel-format to my own
Image

Don't you think that using dateTimeFormatter from PoijiOptions in PoijiDataFormatter#formatRawCellContents for date and date-time cells will improve dev experience?

Copy link

Thank you for contributing to Poiji! Feel free to create a PR If you want to contribute directly :)

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

No branches or pull requests

1 participant