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.............
Error string has not valid datetime?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted May 21, 2012, 4:24 AM EDT
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.
Kunal VaishyaRank #990 · 2K reputationPosted May 21, 2012, 3:15 AM EDT
its sql Formate
if it set the
Select COnvert(varchar ,Getdate(),101)
Santhosh K S34 reputationPosted May 21, 2012, 10:42 PM EDT