The custom date strings in .NET allow you to parse a date with seven fractional parts of a second using fffffff
I need to parse data exported from Oracle SQL Developer which looks like:
15-OCT-08 15.36.16.280000000
I count nine fractional parts but fffffffff
is not a valid date format. In fact:
? DateTime.Now.ToString("dd-MMM-yy HH.mm.ss.fffffffff")
throws an exception with message "Input string was not in a correct format".
How can I elegantly parse my dates?