Do you want to:
string x = s.Substring(0, i), y = s.Substring(i);
(or maybe i-1 / i + 1 depending on your exact requirements).
However, you can also use DateTime.ParseExact to load it into DateTime , specifying an explicit format:
var when = DateTime.ParseExact("020920111422", "ddMMyyyyHHmm", CultureInfo.InvariantCulture);
source share