Avatar of mlcktmguy
mlcktmguy
Flag for United States of America asked on

What Format to Enter Date To Execute SP?

I have us created a SP to insert a record into a table.  I am now testing it using the right click 'execute Procedure' option.  I amm presented with a screen to enter all of the parameteres that can be passed to the Sproc.

One of the parms is a date.  I enter the date in the fomat 12/18/15 but it rejects it as not being in a date format.  How would I entered a valid '@PaymentDate' in the value column of the screen below.
Sproc Date Entry
Microsoft SQL Server

Avatar of undefined
Last Comment
mlcktmguy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Brian Crowe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mlcktmguy

ASKER
Brian, I got the same incompatible message with that format.

In the meantime I tried '12/18/15' and that worked.
mlcktmguy

ASKER
Not the correct answer but I appreciate the response.
Brian Crowe

Oh I see...it was just the quotes you were missing.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
mlcktmguy

ASKER
Good point, the quotes were the key.  After your comment about the quotes, I went back and tested your answer with quotes around it, it worked also.  

Thanks for the followup and pointing out the quotes were the key.