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

select convert(varchar(20),getdate(),106)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

710


Do you know the capabilities of cursors?

529


What are extended events in sql server?

500


What are exact numeric data types in ms sql server?

505


Do you know what is difference between index seek vs. Index scan?

509






What is subquery explain with example?

604


Do you know spatial data types - geometry and geography in sql server 2008?

570


What is scheduled job and how to create it?

544


What is the command used to recompile the stored procedure at run time?

611


What is @@rowcount in sql?

552


What is set nocount on?

494


What is query optimization process?

512


Disadvantages of the indexes?

587


How to provide values to stored procedure parameters in ms sql server?

525


What is analysis service repository?

583