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!

Convert Getdate() into (dd/mm/yy) format 1

Status
Not open for further replies.

outofservice

Technical User
Feb 20, 2002
33
GB
-- Converts todays date into (dd/mm/yy) format without
-- the timestamp

-- declare @date as datetime datatype
-- set @date as todays date
-- convert todays date into dd/mm/yy format

DECLARE @date smalldatetime
SET @date = getdate()
SELECT CONVERT(char(12), GETDATE(), 3)
GO Lauryn Bradley
SQL Server DBA
 
Hi there, this will help me a great deal as I need to produce a date field without the timestamp. Thanks.

W.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top