datetime conversion error

  • Hello all I have data in the format '6/9/2006

    and need to load it as datetme can any one please help me as iam not ale to convert it . I have tried 100 ways ... but still I am not able to it gives the following error

    Conversion failed when converting date and/or time from character string.

    your response is a life saver ..

  • Dint you try cast and convert functions?

    select cast ( '6/9/2006' as datetime)

    select convert( datetime,'6/9/2006' )

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply