You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving some CSV files where I receive dates in the format yyyyMMddHHmmss and sometimes, yyyyMMdd. I would like to be able to desrialise these into proper DateTime objects.
The .NET framework allows parsing these values as:
string value = "20080414105034";
DateTime.Parse(value); 'FAILURE
DateTime.ParseExact(value, "yyyyMMddHHmmss", CultureInfo.InvariantCulture); 'SUCCESS
If we could optionally pass in those through settings, then it would really help to deal with these non-standard formats. Sometimes, the data does not follow standard formats for the FileCultureName property. This would then allow this sort of configuration:
I am receiving some CSV files where I receive dates in the format yyyyMMddHHmmss and sometimes, yyyyMMdd. I would like to be able to desrialise these into proper DateTime objects.
06|T|1|NHRPL|57999|Minor Theatre|M|12000|T|20080414105034|20080414125034||AC||0|1|0|0|0|0|P||
The .NET framework allows parsing these values as:
If we could optionally pass in those through settings, then it would really help to deal with these non-standard formats. Sometimes, the data does not follow standard formats for the FileCultureName property. This would then allow this sort of configuration:
The text was updated successfully, but these errors were encountered: