Im using a datetime picker which supposed to be the current time will be displayed on my table column..
I used this to display on my datagrid..
dgvInfo.Rows(dgvInfo.RowCount - 1).Cells("colDateTime").Value = Convert.ToDateTime(dtRow("DateAndHour").ToString())
but I got the error message:String was not recognized as a valid DateTime
I used this to display on my datagrid..
dgvInfo.Rows(dgvInfo.RowCount - 1).Cells("colDateTime").Value = Convert.ToDateTime(dtRow("DateAndHour").ToString())
but I got the error message:String was not recognized as a valid DateTime