Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getdate Function

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I want to use the getdate function but it returns the time also.

How do i assign a variable (@CutOffDate) the current system date only and in the format mm/dd/yyyy ?


thanks
 
try this in the query analyzer:

declare @CutOffDate varchar(10)

set @CutOffDate= convert(varchar,getdate(),101)
select @CutOffDate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top