Hi , I have problem with datetime , dig around google try but wonder why I can not.
In database keep nvarchar(1) like '20111010' and I'd like the result as date with no time. I try as following...
SELECT convert(datetime,'20111010',103)
the result still
2011-10-10 00:00:00:000
Actually , I want 10/10/2011
Help me please..
Natchaya....
How to handle datetime in query
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Dec 22, 2011, 6:50 AM EST
natchaya khamkuna31 reputationPosted Dec 22, 2011, 5:47 PM EST
Natchaya
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 4, 2012, 8:30 PM EST
also try following..
http://www.sql-server-helper.com/tips/date-formats.aspx
http://msdn.microsoft.com/en-us/library/ms187928.aspx
hope this help.