Hello, 2008R2
I have a VARCHAR column with a date as DD/MM/YYYY. I want to convert to DATE datatype. I tried
but get the error:
Msg 241, Level 16, State 1, Line 1
Conversion failed when converting date and/or time from character string.
I know there is a command to change default date format but cannot remember it.
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
I have a VARCHAR column with a date as DD/MM/YYYY. I want to convert to DATE datatype. I tried
Code:
declare @D date = '21/1/2015';
select CONVERT(date, @D, 103);
Msg 241, Level 16, State 1, Line 1
Conversion failed when converting date and/or time from character string.
I know there is a command to change default date format but cannot remember it.
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!