You can use Regex with LINQ to compare the Date format data type.
CODE
// Regex pattern to match DD.MM.YYYY Format
var regexPattern = @"^([0]?[0-9]|[12][0-9]|[3][01])[.]([0]?[1-9]|[1][0-2])[.]([0-9]{4}|[0-9]{2})$";
Regex regexObj = new Regex(regexPattern);
// Matched Values matching the regex pattern are returned in IENUMERABLE OF STRING TYPE
var dates = File.ReadLines(txtFilePath).Select(lines => lines.Split(' ').FirstOrDefault(colValue => regexObj.IsMatch(colValue)));
7
solved Read Certain Data from text File