Is there a standard library function anywhere which will parse a string into some kind of date/time representation?
In Data.Time.Format, there's parseTime. parseTime takes a format string that describes the layout. Since you have varying layouts in your files (hopefully consistent in the same file!), you simply change the format string for each file.