Convert String to Date Time with varying formats

have a look here on how to handle multiple formats with a single DateTime.ParseExact