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

Code Example 1

DateTime dateAndTime = DateTime.Now;
Console.WriteLine(dateAndTime.ToString("dd/MM/yyyy")); // Will give you smth like 25/05/2011

Learn ReactJs, React Native from akashmittal.com