RColby,
Try this sample I just made, I hope that you than you see how the dates work
in a datatable in VBNet (and therefore in a database)?
Cor
\\\Needs a new project with a datagrid on the form
Private Sub Form1_Load(ByVal sender As _
Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
'Making of the test datatable
Dim dt As New DataTable("Test")
dt.Columns.Add("Dat", GetType(System.DateTime))
For i As Integer = 0 To 5
Dim dr As DataRow = dt.NewRow
dr(0) = Now.AddDays(i)
dt.Rows.Add(dr)
Next
'Showing handling of the date in a datatable
dt.Rows(0)(0) = DBNull.Value
For Each dr As DataRow In dt.Rows
If dr(0) Is DBNull.Value Then
dr(0) = Now.AddDays(10)
End If
Next
DataGrid1.DataSource = dt
End Sub
///
|