c# how to get current datetime without using datetime.now code example Example: c# today without time var dateAndTime = DateTime.Now; var date = dateAndTime.Date;