Convert sqldatetime to string at the footer
Hi experts,
may I know is this the way to convert sqldatetime to string at the grid view footer? Cause there is an error for this word: .RowIndex
DateTime startDate = Convert.ToDateTime(gvContract.DataKeys[e.RowIndex].Value.ToString());
Thanks:D