Reputation: 1702
I want to change output date format of parameter @DateIssued
to "2013-12-31"
format.
Upvotes: 1
Views: 172
Reputation: 172528
You can try this:
SELECT CONVERT(char(10), GetDate(), 126)
or in your case:
SELECT CONVERT(char(10), @DateIssued, 126)
You can look into CAST and CONVERT
Upvotes: 2