Question: how to convert textbox value to date 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 ) ;