divya

divya

  • NA
  • 186
  • 111.9k

string was not recognized as a valid datetime

Jun 25 2012 9:03 PM

Hai guys

   when i am trying to fetch the data from gridview to textboxes by using the following code iam getting an error like"string was not recognized as a valid datetime"

DtpExpence.Value = Convert.ToDateTime(dgvCompanyExpences.SelectedRows[0].Cells[2].Value.ToString());


Please Help Anyone,Thanks in advance

Its very urgent..

Answers (4)