conversion failed when converting date and/or time from character string sql server 2012 in dynamic query : select * from abc 
where  ((@abcStartDate_From IS NULL and  @abcStartDate_To IS NULL  )OR	
	((StartDate > @LicenseStartDate_From) and ( @abcStartDate_To is NULL)) OR
	(DATEADD(d, 0, DATEDIFF(d, 0, StartDate))  BETWEEN @abcStartDate_From and @abcStartDate_To ) )

note :- startdate  and parameters are datetime .

I want to write dynamic query but got error "conversion failed when converting date and/or time from character string "

Could anyone help me to comeout from this issues.

