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