I am facing problem while fetching a data from SQL server DB
below is a query i'm executing
This query was working correct 2 days back but today i executed the same query and showing below error
"The Conversion of char datatype to a datetime datatype resulted in an out-of-range datetime value"
IN MY Sql Database i'm using Datatype datetime to store dates
below is a query i'm executing
Code:
select * from Customer where(OrderDate BETWEEN '02/01/2012' and '14/01/2012') and (Item='Dell')
"The Conversion of char datatype to a datetime datatype resulted in an out-of-range datetime value"
IN MY Sql Database i'm using Datatype datetime to store dates
Comment