Link to home
Start Free TrialLog in
Avatar of Mr_Shaw
Mr_Shaw

asked on

Convert datetime to date

I am trying to convert 16/08/1960 00:00:00 into 16/08/1960

i have used

CONVERT(DateTime, Referral_date, 103)

but it does not work
ASKER CERTIFIED SOLUTION
Avatar of BrandonGalderisi
BrandonGalderisi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr_Shaw
Mr_Shaw

ASKER

I just want to check that when I use Convert it does not update the actual table?
No.  That just selects the data for display/return purposes.  The IDEAL way to handle this is to have your application format the date how you desire and allow SQL Server to return dates and not strings.