This problem is similar to the issue I listed under enhancements to the BrowseDialog. To select records by date, ignoring the time component on a SQL DateTime field you can do the following
Public Sub FillByDate(ByVal ldDate As Date)
Dim loCommand As New SqlCommand
loCommand.CommandText = "SELECT * FROM Library” _
"WHERE CONVERT(Char(10),Media_date,101) = @SearchDate"
loCommand.Parameters.Add("@SearchDate", SqlDbType.Char)
loCommand.Parameters("@SearchDate").Value = string.Format("{0:MM/dd/yyyy}",ldDate)
Me.FillDataTable(loCommand)
End Sub
-Larry