Check out example codes for "get day month year from date c#". It will help you in understanding the concepts better.

Code Example 1

// can add : or / to seperate dates and time
DateTime.Now.ToString("yyyyMMddhhmmss")

Learn ReactJs, React Native from akashmittal.com