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
Explain boyce and codd normal form(bcnf)?
How to stop log file growing too big?
How to return the date part only from a sql server datetime datatype?
What are click through reports?
When you use @@error and try-catch?
How many types of dimensions are there and what are they? : sql server analysis services, ssas
Name 3 ways to get an accurate count of the number of records in a table?
What is difference between drop truncate and delete?
How adventureworkslt tables are related?
What is compression - row-level and page-level compression?
write an SQL query to list the employees who joined in the month of January?
What is user-defined multi-statement table-valued function?
What is nolock hint in sql server 2008
What type of Index will get created after executing the above statement?
How to create “dependant” parameter “make, model, year”