I get this error "Conversion failed when converting date and/or time from character string." My code is below.
string[] closedate = lbldate_end.Text.Split(' ');
string txtdate = closedate[0];
string txttime = closedate[1];
Am getting date from SQL database in a label. But i get it as 15-05-2014 00:00:00 so am splitting it. and then updating in database.but error is thrown.
Conversion failed when converting date and/or time from character string
Please someone help me