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?'

VulpesRank #55 · 29.2K reputationPosted Feb 20, 2015, 4:01 AM EST
Hari Krishna93 reputationPosted Feb 20, 2015, 3:08 AM EST
Could you provide your code please.
Hari Krishna93 reputationPosted Feb 20, 2015, 3:08 AM EST
Could you provide your code please.
Dipankar BiswasRank #992 · 2K reputationPosted Feb 20, 2015, 3:11 AM EST
you need to convert string To datetime
like this..
Thanks
Dipankar Biswas
Mfwamba Tshimanga155 reputationPosted Feb 20, 2015, 3:39 AM EST
then on my button I put this:
Mfwamba Tshimanga155 reputationPosted Feb 20, 2015, 4:10 AM EST