String '18-07-01 00:00:00' was not recognized as a valid DateTime. code example
Example: System.FormatException: 'String '09-03-2020' was not recognized as a valid DateTime.'
this.Text="22/11/2009";
DateTime date = DateTime.ParseExact(this.Text, "dd/MM/yyyy", null);