Lots of stuff on the web about this one but i just cant get anything to work correct.
I need to find everything from a particular table where the date from my parameter is found in the 'timestamp'datetime on this table
So lets say.
Select g.*
From egtable..headerinfo as g
WHERE g.istatus BETWEEN 5 AND 10 AND
REPLACE(LEFT(CONVERT (varchar, timestamp, 101),10),' ','-') = convert(datetime,'<%parameterDate%>')
The timestamp displays 'as yyyy-mm-dd hh:mm:ss' my parameter date would 'be mm/dd/yyyy'
My goal is to ultimately strip out the time, convert the date and then compare to parameters. Any help on this would be greatly appreciated. I've tried countless combinations and nothing seems to work :(
Thanks B