Link to home
Start Free TrialLog in
Avatar of ezzadin
ezzadin

asked on

Convert varchar to MM/dd/YYYY

Hi,

I have a field that is formatted as Varchar and the value is Wednesday, June 20, 2012.

How can this be converted to MM/dd/YYYY?

Thanks.
SOLUTION
Avatar of sventhan
sventhan
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
Try this format

SELECT CONVERT(VARCHAR(10), GETDATE(), 101) AS [MM/DD/YYYY]

replace GETDATE() with your date
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
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 ezzadin
ezzadin

ASKER

Thanks.