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
 Transact-SQL (2000)
 Return a short date from datetime

Author  Topic 

pithhelmet
Posting Yak Master

183 Posts

Posted - 2005-08-30 : 17:53:57

Hi everyone

I need to perform a date modification
in the SQL prior to returning the
value to the user.

I need to convert from long date format
to the short date format.

but i need to do it inline...

please advise

take care
tony

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-31 : 01:29:52
In your Front end Application or Reports you can do this formation
Otherwise use Convert function

Select Convert(varchar,Getdate(),101)

Madhivanan

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

pithhelmet
Posting Yak Master

183 Posts

Posted - 2005-09-05 : 09:58:27
Perfect -

thank you

Go to Top of Page
   

- Advertisement -