how to get only the date not time in DateTime c# code example Example: c# get date without time var dateAndTime = DateTime.Now; var date = dateAndTime.Date;