Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Date format

Author  Topic 

sital
Yak Posting Veteran

89 Posts

Posted - 2008-12-16 : 08:38:17
How to display the date in the following format dd/mm/yyyy?

I want to retrieve the order date column in the above format.

Pls help..

thanks in advance....

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2008-12-16 : 08:43:11
Do this in the front end, but if you still want to do it in SQL, look up CONVERT() in BOL.
Go to Top of Page

JamesRyan
Starting Member

18 Posts

Posted - 2008-12-16 : 11:31:29
Here is a list of date formats you can use

http://www.sqlhowto.co.uk/post/how-can-i-display-the-date-in-a-variety-of-formats-.html



James Ryan
www.sqlhowto.co.uk
Go to Top of Page

sshelper
Posting Yak Master

216 Posts

Posted - 2008-12-16 : 11:44:05
You may also want to refer to the following link:

http://www.sql-server-helper.com/tips/date-formats.aspx

SQL Server Helper
http://www.sql-server-helper.com
Go to Top of Page

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2008-12-16 : 23:30:59
SELECT CONVERT(VARCHAR(10), GETDATE(), 103) AS [DD/MM/YYYY]
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-16 : 23:32:52
whats the front end tool you're using?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-26 : 06:10:58
Let me join in!
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=80563


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -