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 / moid
select convert(varchar(20),getdate(),100)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain about temporary stored procedure?
How to create new tables with "select ... Into" statements in ms sql server?
What is cursors?
How to test subquery results with the exists operator?
Why do we use sql limitations? Which constraints can we use while making a database in sql?
Explain the difference between delete,drop and truncate in SQL Server?
What is the difference between drop table and truncate table?
Explain a checkpoint?
How to read data in a table with "select" statements?
Explain the microsoft sql server delete command? : SQL Server Architecture
How use inner join in sql server?
Explain what is the difference between union and union all?
What is user-defined inline table-valued function?
Can coalesce return null?
What is the index requirement in SQL Azure?