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

Code Example 1

using System;
class Test {
   static void Main() {
      //print current datetime
      Console.WriteLine (DateTime.Now.ToString());
      //make a custom datetime
      DateTime dt = new DateTime(2018, 7, 24);
      Console.WriteLine (dt.ToString());
   }
}

Learn ReactJs, React Native from akashmittal.com