Aug 17, 2001 #1 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
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
Aug 17, 2001 #2 rajeevnandanmishra Programmer Jun 1, 2001 379 IN use this select @cutoffdate=convert(char(10),getdate(),101) Upvote 0 Downvote
Aug 17, 2001 #3 mojorourke Programmer Aug 16, 2001 9 US try this in the query analyzer: declare @CutOffDate varchar(10) set @CutOffDate= convert(varchar,getdate(),101) select @CutOffDate Upvote 0 Downvote
try this in the query analyzer: declare @CutOffDate varchar(10) set @CutOffDate= convert(varchar,getdate(),101) select @CutOffDate