c# datetime no time code example
Example 1: c# get date without time
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
Example 2: c# datetime remove time
DateTime dateAndTime = DateTime.Now;
Console.WriteLine(dateAndTime.ToString("dd/MM/yyyy")); // Will give you smth like 25/05/2011