system date format is "yy-mm-dd"
"select getdate()" ----> 2009-01-24 20:03:28.513
if i write "select dateadd(dd,2,getdate())
".it returns "2009-01-26 19:59:38.340"...my question is dat
could it be possible to retrive da date in da format "26
jan 2009 ...."??
Answer Posted / shailesh s. deshmukh
Dear friend try this one
select convert(varchar(11), getdate(),106)+(SELECT right
(GETDATE(),8))
as Date
or
select convert(varchar(11), getdate(),106)+(SELECT STUFF
(getdate(), 1, 11, ''))
as Date
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the steps to follow to configure SQL*Net?
What is xml datatype?
What is command parameter in ssrs?
How to enter comments in transact-sql statements?
Explain the properties of subqueries in sql server?
What is use of attribute hierarchy optimized state? : sql server analysis services, ssas
Explain few of the new features of sql server 2008 management studio
Explain different types of lock modes in sql server 2000?
Can you explain what are various ways to enhance the ssrs report?
What is database replication? What are the different types of replication you can set up in sql server?
What is clr ddl trigger?
What is the difference between DATETIME2 and DATETIME?
How do you debug a procedure in sql server?
How do you delete a trigger?
Where are sql server usernames and passwords stored in the sql server?