Skip to content

Feature Request: Use 'OutputFormat' Column attribute for reading as well #67

@hfloyd

Description

@hfloyd

When Importing a csv where dates were written as "d/M/yyyy" I am getting the exception:
LINQtoCSV.WrongDataFormatException: Value "31/12/2019" in line 2 has the wrong format...

It would be nice if the 'OutputFormat' data could be used when importing date fields, not just writing. Example:

   [CsvColumn(Name = "Date", FieldIndex = 13, OutputFormat = "d/M/yyyy")]
   public DateTime Date { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions