How to filter Field DateTime?

isawa

Active member
Joined
Oct 3, 2005
Messages
25
Programming Experience
Beginner
How to filter Field DateTime? Like a:


vBindingSource.Sort = "FieldDateTime"
vBindingSource.Filter =
" FieldDateTime LIKE '{ d " & Me.ToolStripTextBox_Search.Text & "%}'"
vDataGridView.DataSource = vBindingSource

Help me if u have some code? :confused:
 
LIKE is for strings only. If your column contains dates then you cannot use it. Read the help/MSDN topic for DataColumn.Expression to see what's vaid syntax for filtering properties.
 
Back
Top