Skip to content

Dates read in wrong format despite user input; no option to ignore only date formatting #4481

@LaraGb

Description

@LaraGb

Users enter dates in format (DD/MM/YYYY), but when reading with PhpSpreadsheet, dates come out in American format (MM/DD/YYYY). Using setReadDataOnly(true) disables all formatting, which isn’t ideal because I want to keep other formats intact. There’s no option to ignore only date formatting. The XLS is dynamic, so I can’t specify columns manually.

Expected:
Ability to read dates respecting user input format or at least an option to ignore only date formatting without losing other styles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions