Check out example codes for "how to get rid of the slashes in datetime variables c#". It will help you in understanding the concepts better.
Code Example 1
DataTime d = new DateTime(2010, 05, 06);
string s = d.ToString("MMddyyyy");
Learn ReactJs, React Native from akashmittal.com