I was trying to create a table as follows,
create table table1(date1 datetime,date2 datetime);
First I tried inserting values as below,
Simple answer - 5 is Italian "yy" and 105 is Italian "yyyy". Therefore:
SELECT convert(datetime,'21-02-12 6:10:00 PM',5)
will work correctly, but
SELECT convert(datetime,'21-02-12 6:10:00 PM',105)
will give error.
Likewise,
SELECT convert(datetime,'21-02-2012 6:10:00 PM',5)
will give error, where as
SELECT convert(datetime,'21-02-2012 6:10:00 PM',105)
will work.