c# datetime now without time code example
Example 1: c# today without time
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
Example 2: c# get date without time
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;