Hi...
in reportviewer i'm goning to send startdate and end date of type string(yyyy/mm/dd format) to stored procedure,
In table, Starttime and endtime are DATETIME datatype,IN table datetime in dd/mm/yyyy format.
when i click buton report show An error has occurred during report processing.String was not recognized as a valid DateTime.? Error
Please help me
thanks in advance.............
Loading
Jignesh TrivediPosted May 21, 2012, 8:24 AM
I think you can use cast(startdate as datetime) in where condition in SP.
select * from table1 where startdate>= cast(startdate as datetime) and enddate <= cast(enddate as datetime).
hope this will help you.
Santhosh K SPosted May 22, 2012, 2:42 AM
Kunal VaishyaPosted May 21, 2012, 7:15 AM
its sql Formate
if it set the
Select COnvert(varchar ,Getdate(),101)