Link to home
Start Free TrialLog in
Avatar of Alex Lord
Alex Lord

asked on

Wrong date format in tables

User generated image
So i have a table with these dates,

they are in wrong format,

what sql can i use to reformat these dates to

day/month/year

?
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

What database?
Is it an actual date data type or a string/varchar data type?
Avatar of Alex Lord

ASKER

it is a varchar
you can try this.

select convert(varchar(10), convert(datetime, date_column), 103) from your_table

Open in new window

>>it is a varchar
What database product?
ASKER CERTIFIED SOLUTION
Avatar of D B
D B
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
I agree i am fixing someone mistake lol