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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help With Date 1

Status
Not open for further replies.

krishnaa123

Programmer
Jan 7, 2004
5
0
0
US
Hi all,
In Oracle while selecting a date we can query in this way for example trunc(col name,dd/mm/yyyy) = trun(sysdate)
how do I do that in SQL Server I am using 2000.

Thanks in advance,
krishnaa.
 
I hope this is what you need
select convert(varchar(20),getdate(),110)
 
Hi Ronnetp,
Thaks a lot this works.

thnaks,
y.p.krishnaa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top