The textbox TextBox1 converts what the user types into DateTime format. This is fine but the date that the user enters also has the hours, minutes and seconds appended onto the end of the date. I just want the date in the format dd/mm/yyyy and not in the format dd/mm/yyyy 00:00:00.
DateTime theDate = Convert.ToDateTime(TextBox1.Text);
DateTime theDate = Convert.ToDateTime(TextBox1.Text);