Check out example codes for "date time heutiges datum". It will help you in understanding the concepts better.

Code Example 1

var date= DateTime.Now.Date;

Code Example 2

DateTime a = ;//some datetime
DateTime now = DateTime.Now;
TimeSpan ts = now-a;

Code Example 3

string x = DateTime.Now.ToShortDateString()

Learn ReactJs, React Native from akashmittal.com