Check out example codes for "c# string to datetime". It will help you in understanding the concepts better.

Code Example 1

string iDate = "05/05/2005";
DateTime oDate = Convert.ToDateTime(iDate);
MessageBox.Show(oDate.Day + " " + oDate.Month + "  " + oDate.Year );

Code Example 2

.Net str to DateTime

Learn ReactJs, React Native from akashmittal.com