Hello. I'm trying to use SqlDataReader to return information from my database. It works fine until it comes to a datetime field. I'm getting an error saying: " Input string was not in a correct format." on the line where I'm declaring a variable to hold my field. Here is the line where the error is occuring: Dim waitDate As Date = reader.GetDateTime("WaitListDate")
Can someone tell me what I'm doing wrong?