Hey Everyone,
I am just starting to learn T-SQL and came across something that puzzled me when looking at dates.
If I enter this:
SELECT CONVERT(datetime, CONVERT(varchar, GETDATE(), 101)) AS Expr1
In Enterprise Manager I get this output
12/30/2002 - which is what I assumed that I should get
In Query Analyzer I get this output
2002-12-30 00:00:00.000 - which I did not expect
Does anyone know why there would be a difference and if so, how do I get Query Analyzer to format as 12/31/2002?
Thanks alot,
Brent