I have a column in my mysql dB called date_in as DATE using this format(2020-10-10), and I have my RDLC report which searches between date_in and populate the result. My problem is I have a datetiepicker1 and 2 which searches between date_in, I can only search using datetimepicker.value which gives this format 2020/10/10 07:40:40 so if I have to search to get this date 2020-10-20 I have to backdate it to 2020-10-19 due to the datetimepicker.value and when I changed to datetimepicker.Text it populate and error that it cannot convert string to system.datetime I am using C# windows form
DateTimePicker not selecting Date correctly from RDLC report
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Maya ChopraRank #5,481 · 298 reputationPosted Sep 29, 2024, 11:40 PM EDT
Check if the
DateTimePickercontrol is using the correct date format. If the format of the date in theDateTimePickerdiffers from what's expected by the RDLC report, it may not select or pass the date correctly.Maina Abubakar37 reputationPosted Sep 30, 2024, 1:14 AM EDT
Is not passing thesame things. Datetimepicker.value is passing this format 2020/10/10 07:10:40 while my DB format is 2020-10-10 when I use datetimepicker.Text it shows error of string not convertable to system.datetime because my RDLC report is expecting a date value