var time = "";
string pattern = @"_(?<time>20d{6})";
var regResult = Regex.Match(fileName, pattern);
if (regResult.Success)
{
time = regResult.Groups["time"].ToString();
}
var uploadDate = DateTime.ParseExact(time, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture);