Anyway to fix broken date strings?
Hello, my current work is to parse and extract data from large PDF text using itextsharp and regex. Long story short, the program is almost ready and I have all the quirks ironed out.
One problem I have are dates which cannot be converted to DateTime. For example, itextsharp returned this Date October 2 2, 2012. There's a space in between the number 22. How do I safely convert this to DateTime? Sometimes, I get O ctober which is easy to deal with but those random spaces have been very annoying.
0 comments:
Post a Comment