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.
| Author |
Topic |
|
vicki
Posting Yak Master
117 Posts |
Posted - 2002-03-25 : 13:36:27
|
| Hi,I want to convert smalldatetime to time datetime onlyFor example:I have 3/21/02 9:00:00 AM and now I just want it to display only 9:00:00 AM How do I do?thanks |
|
|
chadmat
The Chadinator
1974 Posts |
Posted - 2002-03-25 : 16:01:42
|
| This query shows you how to do it. Though it is in 24Hour (Military) time:declare @sql datetimeset @sql = '03/21/2002 9:00:00AM'select convert(varchar(8), @sql, 108)-Chad |
 |
|
|
|
|
|