That the supported date conversion styles are described on MSDN . The bad news is that there is no style for mmddyy . Thus, you will need to make your own formation. How to do this depends on how you import. Is this an SSIS ETL step? Is this a one-time copy of the table?
You can customize the format that you specify directly from T-SQL:
declare @x varchar(6) = '010110'; select dateadd(month, cast(substring(@x, 1,2) as int)-1, dateadd(day, cast(substring(@x,3,2) as int)-1, dateadd(year, cast(substring(@x,5,2) as int),'01-01-2000')));
Remus Rusanu
source share