By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,364 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,364 IT Pros & Developers. It's quick & easy.

date formatting

P: 58
I am putting following line in view:
CAST(utnam.V_SALE.SALE_DATE AS varchar(11))
it is giving the result like Jan 26 2005
but i want results as 01/26/05, then how should I modify above line of code?
working with sql server 2005
thks
Mar 26 '08 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
I am putting following line in view:
CAST(utnam.V_SALE.SALE_DATE AS varchar(11))
it is giving the result like Jan 26 2005
but i want results as 01/26/05, then how should I modify above line of code?
working with sql server 2005
thks
use CONVERT() instead.


-- CK
Mar 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.