0

I've got a csv file and I'm using csvhelper to do the parsing. I've now got a date thats being formatted in

dd/MM/yyyy HH:mm:ss

however, csv reader doesn't read this has a correct date for my locale.

Is there a way to set the CSV date time format?

John
  • 175
  • 1
  • 10
  • Looks like a duplicate of [CsvHelper changing how dates and times are output](https://stackoverflow.com/q/39564585/3744182). You may also need to pass `CultureInfo.InvariantCulture` into `CsvWriter` or `CsvConfiguration`, see [C# CsvWriter throws "CsvWriter does not contain a constructor that takes 1 arguments" after update from 2.8.4 to 27.1.1](https://stackoverflow.com/a/69438380/3744182) or [CsvHelper C# datetime format dd/mm/yyyy](https://stackoverflow.com/q/66138020/3744182). Do those answer your question? – dbc Jan 25 '22 at 18:27
  • 1
    Does this answer your question? [CsvHelper changing how dates and times are output](https://stackoverflow.com/questions/39564585/csvhelper-changing-how-dates-and-times-are-output) – David Specht Jan 25 '22 at 19:10

0 Answers0