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 / bipin singh

Try this this will works fine.

select convert(varchar,dateadd(day,2,getdate()),106)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what do we need queues in sql service broker?

511


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

591


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

1298


What is acid mean in sql server?

566


Can we return Data from 4(more than 1) tables in stored procedure?

607






Explain the phases a transaction has to undergo?

551


What happens to a trigger with multiple affected rows?

522


What are the tables in sql?

614


What are the advantages of stored procedure in sql server?

460


How to create user messages with print statements in ms sql server?

588


Explain the difference between cross join and full outer join?

491


Can two tables share the same primary key?

494


What is an identity?

563


Can one drop a column from a table?

544


Tell me the phases a transaction has to undergo?

543