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

Date portion of a datetime field

Status
Not open for further replies.

samcam

Programmer
Feb 18, 2003
18
US
Hi Folks,

How do I get just the date portion of a field which has both date and time.

thanx
 
select convert(varchar(10),getdate(),101)
or
select convert(varchar(10),getdate(),102)
or
select convert(varchar(10),getdate(),103)
or
select convert(varchar(10),getdate(),104)
.
.
.
getdate() is a datetime combined with date and time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top