ASP.NET vb.net "The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value."

52 Views Asked by At

I'm using calendar from tool box of VS IDE, and I want to get data from database according to selected date from calendar between 20/7/2020 to 20/7/2021, but I got an error

The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value. VB.Net

I have a calendar control:

<asp:Calendar ID="calFrom" runat="server"></asp:Calendar>

enter image description here

0

There are 0 best solutions below