Вам нужно использовать DateTime.TryParse()
, чтобы превратить вашу строку в DateTime, который затем можно сравнить с другими датами.
DateTime minDate = // minimum boundary
DateTime maxDate = // maximum boundary
string input = "January 10, 2010";
DateTime inputDate;
if (DateTime.TryParse(input, out inputDate))
{
if (inputDate > minDate && inputDate < maxDate)
{
...
}
}