Hi all,
Batchdate comes in as string format (07/07/2011). I tried but for some reason am not getting any results.
Any ideas?
ALTER PROCEDURE dbo.CouponReportbyScheme
(
@BatchDate varchar(20)
)
AS
declare @myDate datetime
select @myDate = convert( datetime, @BatchDate)
Select * from Coupons where CouponGenerationDate=@myDate