public void EditMatchDate(DateTime newMatchDate) { if (newMatchDate.Date < MinDate.Date) { throw new ArgumentOutOfRangeException($"Date cannot be edited to earlier than {MinDate.ToShortDateString()}"); } if (newMatchDate.Date > MaxDate.Date) { throw new ArgumentOutOfRangeException($"Date cannot be edited to later than {MaxDate.ToShortDateString()}"); } Value = newMatchDate; }