LINQtoCSV icon indicating copy to clipboard operation
LINQtoCSV copied to clipboard

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

Open hfloyd opened this issue 6 years ago • 0 comments

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; }

hfloyd avatar Jan 02 '20 22:01 hfloyd