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
i have used
CONVERT(DateTime, Referral_date, 103)
but it does not work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER