how to get today's date in c# without time code example
Example 1: c# get today's date
DateTime today = DateTime.Today;
Example 2: c# today without time
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
DateTime today = DateTime.Today;
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;