DTS Problem with DateTime

  • Hi All,

    I am trying to insert a datetime field from a CVS file using DTS and it fails. Here is sample data of my CVS file  2005101811:25:28.35 and when I try to use Cdate(dtssource("col") it fails. Any help in resolving this issue is greatly appreciated.

     

  • Your data is a bit fried I think.  It should be in the format 2005-10-31 19:50:52.567

     



    A.J.
    DBA with an attitude

  • Your data is a bit fried I think.  It should be in the format 2005-10-31 19:50:52.567

     



    A.J.
    DBA with an attitude

  • you can change your transform to convert the mal-formed date:

    CDate(Left("2005101811:25:28.35",8) & " " & Right("2005101811:25:28.35",11))

    Andy

Viewing 4 posts - 1 through 3 (of 3 total)

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