Question: how to convert textbox date dd/mm/yyyy into datetime in c#?
Answer: DateTime time1 = DateTime. ParseExact(txtdate. Text, "yyyy-MM-dd", CultureInfo. InvariantCulture);