I am trying to convert a date from DDMMYY format to datetime in SQL Server.
DDMMYY
datetime
I am using the convert command as follows
convert
select CAST('121031' AS datetime) as d -- For YYMMDD