I have a date in string format. I want to display it in a date picker control. I am using the following code.
Dim Stk_Date As String = "20140713"
Dim dt As DateTime = DateTime.Parse((Stk_Date).ToString("yyyy-MM-dd"))
I am getting the error "Unable to cast object of type "System.string" to type "system.IFormatProvider" "