I have a binding source and I'd like to filter a set or records only in the current week based on today's date. for example, today is the 1st of July, I'd like to see all the records between Monday the 29th of June and Friday the 3rd of july.
thank you
Visual Basic.NET.NET Programming
Last Comment
Shaun Kline
8/22/2022 - Mon
Robberbaron (robr)
it depends upon your underlying tables somewhat.
source1.Filter = "DateField BETWEEN '" & Date1.tostring("yyyy/mmm/dd") & "' AND '" & Date2.ToString("yyyy/mmm/dd") & "'"
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
source1.Filter = "DateField BETWEEN '" & Date1.tostring("yyyy/mmm/d
https://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.filter(v=vs.110).aspx