Question: how to convert textbox value into date format in c#?
Answer: DateTime txtMyDate = DateTime. ParseExact(txtDate. Text, [string format], [IFormatProvider provider]);
DateTime txtMyDate = DateTime. ParseExact(txtDate. Text, "M/d/yyyy", CultureInfo. InvariantCulture);
DateTime instance = DateTime. Parse( txtDate. Text ) ;