Answers for "system.formatexception: 'string '2022-00-01 12:00:00.0 2022/00/01' was not recognized as a valid datetime"

CSS
5

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);
Posted by: Guest on May-29-2020

Code answers related to "system.formatexception: 'string '2022-00-01 12:00:00.0 2022/00/01' was not recognized as a valid datetime"

Browse Popular Code Answers by Language