String test = DateTime.Now.ToString("dd.MM.yyy");
var dateAndTime = DateTime.Now; var date = dateAndTime.Date;