Advertisement

08.29.2005 at 03:20PM PDT, ID: 21544130
[x]
Attachment Details

MSSQL Date Style / Format

Asked by poogy21 in MS SQL Server

Tags: mssql, date, format

I'm looking to return a date format of DD:MM:YY in query analyzer and I keep getting the same format (YYYY:MM:DD)..

Here is my query: select convert(smalldatetime, getdate(), 1)

I also tried all the other style codes (101, 121, 111, 11, 12, etc.. )  Nothing seems to work!


Thank you all in advance for all your help!
- Eyal.Start Free Trial
[+][-]08.29.2005 at 03:25PM PDT, ID: 14779875

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: mssql, date, format
Sign Up Now!
Solution Provided By: rafrancisco
Participating Experts: 1
Solution Grade: B
 
 
[+][-]08.29.2005 at 03:26PM PDT, ID: 14779879

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32