Check out example codes for "System.FormatException: 'String '09-03-2020' was not recognized as a valid DateTime.'". It will help you in understanding the concepts better.

Code Example 1

this.Text="22/11/2009";

DateTime date = DateTime.ParseExact(this.Text, "dd/MM/yyyy", null);

Learn ReactJs, React Native from akashmittal.com