In ASP.NET c# I need to do an IF to statement to check if a field is null or not. The field is a datetime field. Can anyone see what I am doing wrong?
if (Convert.ToDateTime(userData["ConnectionDateTime"]) == System.DBNull)
I am am getting the error System.DBNull is a 'type', which is not valid in the given context.
Hope you can help.