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
How you provide security to cube? : sql server analysis services, ssas
What is transaction server distributed transaction?
Explain about sql server login?
Why are views required in the sql server or in any other database?
What are the different types of data sources in ssrs?
What does sql server mean?
Name and describe few console utilities for ssrs?
What are the ways available in sql server to execute sql statements?
What is the usage of sign function?
Tell me what do we need queues in sql service broker?
Does sql server use t sql?
How would you add a section to a table?
What’s the use of custom fields in report?
What have included columns when we talk about sql server indexing?
Explain what is sql server english query?