Use the Date property:
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
The date variable will contain the date, the time part will be 00:00:00.
Use the Date property:
var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
The date variable will contain the date, the time part will be 00:00:00.