I am having a column in my DB with varchar type having values in following format Day Mon dd hh:mm:ss EDT YYYY. I need to convert it to date time.
On running query select CONVERT(datetime, colname, 100) system returns Error code 241.
Help Please
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use CAST or CONVERT for this:
OR
OR
result: