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 ...."??
Answers were Sorted based on User's Feedback
Answer / praveen kumar.dandu
select to_char('sysdate',dd mon yyyy)from dual
convert the date format to chars and retrive the the system
date in the format what eve r u like
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / 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 |
Answer / shailesh s. deshmukh
select convert(varchar(20),getdate(),106)
| Is This Answer Correct ? | 4 Yes | 1 No |
Try this this will works fine.
select convert(varchar,dateadd(day,2,getdate()),106)
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
what is a join? : Sql server database administration
Describe the functionalities that views support.
What are the all different types of Joins in SQL Server 2000, Anybody can explain each join with definition..Thanks in advance....
9 Answers DELL, i Tech, Infosys, Siemens, TCS,
IN Vs OR operator which is best to use sql server.
Write an sql query for deleting duplicate rows?
What is filestream?
How can sql server instances be hidden? : sql server security
What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks
what is new philosophy for database devises for sql server 7.0? : Sql server database administration
After the SQL installation what are the jobs will you configure?
1 Answers G7 CR Technologies, IBM, Satyam,
what is a deadlock? : Sql server database administration
Why we need sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)