The following code produces an error, any ideas why?
string dateFormatString = "dd.MM.yyyy HH:mm:ss";
string properDate = DateTime.ParseExact(DateTime.Now.ToString() , dateFormatString , null ).ToString()
Error is: String is not recognised as a valid date and time.