I built a procedimiento almacenado that has two parameters type date . The problem is that these dates come to me with the format
NameMes Day Year Time: Minute AM
for example if I send you the date '2017-02-05' comes to the procedure as Feb 05 2017 12:00AM .
What I need is to convert that date into a yyyyMMdd format; I tried with CONVERT in the following way:
Convert(datetime, fecha, 112)
Without any result.
It should be mentioned that the function FORMAT is not supported by the SQL version of the server ( SQLServer 2008 )
Any information is appreciated