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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to convert date format?

Author  Topic 

danyeung
Posting Yak Master

102 Posts

Posted - 2006-06-07 : 15:01:30
How to convert Jun 5 2006 12:00AM to 06/05/2006?

Thanks.
DanYeung

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-06-07 : 15:34:01
Read about CONVERT function in BOL.

Declare @d datetime
select @d = 'Jun 5 2006 12:00AM'

select convert(varchar(10), @d, 101)
Go to Top of Page

danyeung
Posting Yak Master

102 Posts

Posted - 2006-06-07 : 16:10:38
Appreciated.

Thanks.
DanYeung
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-06-08 : 04:08:53
If you use front end application, do the formation there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -