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
When you use @@error and try-catch?
Explain about SQL server 2005?
How to delete existing triggers using "drop trigger"?
How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?
Explain the concept of recursive stored procedure.
What is data modification?
What is rs.exe utility?
what are the core components of SSRS?
What types of replication are supported in sql server?
What is data modeling and Reterminal integrity?
Define right outer join?
How to create a user to access a database in ms sql server using "create user" statements?
What are parameterized reports? What are cascading parameters in ssrs reports?
What is a partition function in sql server?
Is the primary key column of a table an index in ms sql server?