I have. list of files, names of the files are `log20211904.json` what would be the best way to sort this name based on the date that is included in the name of the file? What I get now from my method substring is 20210419 which is not valid date time. I wonder how to do it effectively and get valid DateTimeOffset from 20210419

I was thinking

```
var orderedFIle = new List<LogFile>();

var fileDetail = new LogFile()
{
    FileName = "log20210419",

};
var fileDetailtest = new LogFile()
{
    FileName = "log20210420",

};
var test = fileDetail.FileName.Substring(3, 8);
Console.WriteLine(test);
orderedFIle.Add(fileDetail);
orderedFIle.Add(fileDetailtest);

var  list = orderedFIle.OrderByDescending(f => DateTime.Parse(f.FileName.Substring( 3,8)));
foreach (var VARIABLE in list)
{
    Console.WriteLine(VARIABLE.FileName);
}

```

But the date is actually without separators. What would be the best approach