I need to accept either DateTime or Date information from a text file. The challenge is, this date information comes in any format each time. It can be in any format below.
20160131 23:30:15
31032016 23:30:15
2016/01/31 23:30:15
01/31/2016 23:30:15
31/01/2016 23:30:15
31.01.2016 23:30:15
31/01/2016 23:30
// ... more formats come with '-' separators as well and some similar format
How can I unify these random formats into a string or even straight into DateTime ? Or is there any 3rd party library that can handle this scenario?