public static DateTime Parse(string s, IFormatProvider provider, DateTimeStyles styles) implementation code example
Example: parse datetime c#
using System.Globalization;
DateTime.ParseExact("20200101123000", "yyyyMMddHHmmss", CultureInfo.InvariantCulture)