Check out example codes for "instantiate date time variable C#". It will help you in understanding the concepts better.

Code Example 1

DateTime dtDate = new DateTime(2020,1,1);

Learn ReactJs, React Native from akashmittal.com