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

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

Open
hfloyd opened this issue Jan 2, 2020 · 0 comments
Open

Comments

@hfloyd
Copy link

hfloyd commented Jan 2, 2020

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