troubleshooting Question

sql date format

Avatar of patd1
patd1Flag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005Microsoft SQL Server 2008
2 Comments1 Solution360 ViewsLast Modified:
I have dates stored in my table as 1/1/2010, and I want to read it as 01/01/2010 (MM/DD/YYY)
How can I do that. I tried the following, but still get 1/1/2010.

SELECT CONVERT(VARCHAR(10), [My Column], 101) AS [MM/DD/YYYY] from Temp_crosswalk
result:
7/17/1930
7/17/1930
7/17/1930
1/12/1943

Thanks.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros