Hi I have used a textbox to store a date in DD-MM-YYYY format and since i use SQL server i used to get the value from the textbox and then place it in a variable of type DateTime dt
DateTime dt = DateTime.ParseExact(TextBox10.Text,"MM-DD-YYYY",CultureInfo.InvariantCulture);
I am getting format specification error, I went through many documentation but still couldn't get where i am going wrong
This i am using C# and ADO.net Please can anyone correct me?