I am passing {4/1/2017 12:00:00 AM}
from my C# code to SQL Server as a parameter of a stored procedure. And in the stored procedure, I want to convert this into MMddyyyy
format for data processing. I tried many suggestions from Google but nothing works for me.
Throwing this error:
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value