Skip to content

DateTime exception due to milliseconds field #1938

Answered by guipalazzo
guipalazzo asked this question in Q&A
Discussion options

You must be logged in to vote

Found an answer. Just sharing with anyone interested in the future. It was quite simple and I basically added the following option:

csvReader.Context.TypeConverterOptionsCache.GetOptions().Formats = new[] { "dd/MM/yyyy HH:mm:ss.fff" };

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guipalazzo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant