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 / deepa

select getdate()
select Dateadd(dd,2,getdate())
select convert(varchar(12),Dateadd(dd,2,getdate()),106)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how you can get the list of largest tables in a database? : Sql server administration

544


What's new in sql management studio for sql server? : sql server management studio

573


whats new about truncate in sql server 2008?

2020


What happens when converting big values to integers?

562


What are the disadvantages of using the stored procedures?

540






Explain various On-Delete options in a DB table. Which is the default option?

887


What is a constant or literal in ms sql server?

587


How would you add a section to a table?

562


What is the fastest way to permanently delete a 1 million row table named customers?

591


What is the difference between primary key and unique constraints?

503


What do you understand by a stored procedure?

593


Explain about remote stored procedure?

583


How to reaname table name without using sp_Rename in sql server..?

525


What is subquery explain with example?

604


Does table partitioning improve performance?

528