It is common for programs to enable users to enter dates as string values. To convert a string-based date to a xref:System.DateTime?displayProperty=nameWithType ...
string temp = DateTime.Now.Date.ToString("dd/MM/yyyy"); //( let the value be "20/05/2015") DateTime dt = Convert.ToDateTime(temp); In the first line we are getting ...