I need to filter data from my reportviewer's page with dates (datetimepicker1 and datetimepicker2). I receive this error messages (But when I use a textbox to make filter for name or products its works. Not for dates):
Then with my datetimepicker
Error1The best overloaded method match for 'LunaManager.DataSet2TableAdapters.gestaoTableAdapter.Fill(LunaManager.DataSet2.gestaoDataTable, string, System.DateTime?, System.DateTime?)
Error2Argument 3: cannot convert from 'string' to 'System.DateTime?'
Error2Argument 3: cannot convert from 'string' to 'System.DateTime?'
Error3Argument 4: cannot convert from 'string' to 'System.DateTime?'
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Feb 20, 2015, 9:01 AM
Mfwamba TshimangaPosted Feb 20, 2015, 9:10 AM
Mfwamba TshimangaPosted Feb 20, 2015, 8:39 AM
then on my button I put this:
Dipankar BiswasPosted Feb 20, 2015, 8:11 AM
you need to convert string To datetime
like this..
more help.. see this link..https://msdn.microsoft.com/en-us/library/cc165448.aspx
Thanks
Dipankar Biswas
Hari KrishnaPosted Feb 20, 2015, 8:08 AM
Could you provide your code please.
Hari KrishnaPosted Feb 20, 2015, 8:08 AM
Could you provide your code please.