get today date only withouth time c# code example
Example 1: c# datetime current
DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
Example 2: c# get date without time
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;