OK, I've got a Gridview that contains Users and their info; FirstName, LastName, .... It also contains "Last Login", a date. When "Last Login" is null, "1/1/0001 12:00:00 AM" is showing up. I understand that this is happening because a VB date can never really be "Nothing", but is instead set to "1/1/0001 12:00:00 AM". Typically I would just pass a string instead of a date, but I'm using a data layer with a "UserCollection" class like so.
Any thoughts? Thanks, and have a great day.
Code:
Dim users As New UserCollection()
users.GetUsers()
grdUsers.DataSource = users
grdUsers.DataBind()