G
Guest
I have a DATATIME field that I must display in the MM/DD/YYYY format. The
DATETIME field stores the Date and Time, and that's how I want it. But in my
Stored Procedure and Views I want to only display the Date Portion.
So, I want the value of "10/11/2006 10:20:00" to be displayed as
"10/11/2006" only.
I've tried FORMAT(MyDate,'mm/dd/yyyy'), but I get an error. Plus, I can't
find this in the documentation. I must be looking this stuff up wrong. I did
a search on "FORMAT DATE" and hove found nothing helpful.
Thanks for your help.
DATETIME field stores the Date and Time, and that's how I want it. But in my
Stored Procedure and Views I want to only display the Date Portion.
So, I want the value of "10/11/2006 10:20:00" to be displayed as
"10/11/2006" only.
I've tried FORMAT(MyDate,'mm/dd/yyyy'), but I get an error. Plus, I can't
find this in the documentation. I must be looking this stuff up wrong. I did
a search on "FORMAT DATE" and hove found nothing helpful.
Thanks for your help.