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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Regarding displaying only Time

Author  Topic 

dimpleboy
Starting Member

1 Post

Posted - 2008-10-29 : 03:25:56
I am having a field of Dateofjoin with a data type datetime but i want to access only time instead of displaying date+time..

please give me a reply as early as possible thanx

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2008-10-29 : 03:42:14
Try this:
SELECT CONVERT(varchar(8),getdate(),108)

You can replace getdate() with your Column in that example.

Webfred


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-29 : 05:08:25
and try to do it at front end if its only for display purpose.
Go to Top of Page
   

- Advertisement -