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)
 GetDate format

Author  Topic 

rbohaty
Yak Posting Veteran

71 Posts

Posted - 2004-09-23 : 15:16:49
I want to use get getdate to retrieve the current date. How do I format the results in mmddyyyy format?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-09-23 : 15:19:55
SELECT REPLACE(CONVERT(varchar(10), GETDATE(), 101), '/', '')

Tara
Go to Top of Page
   

- Advertisement -