Date Reformat? Am I missing something.

More
7 years 5 months ago #14992 by DeanCovey
I am trying to reformat the date from the text file to a sql format date. Seems simple enough but I am missing it.


Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #14993 by admin
Are you loading data into Date or Datetime field?

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #14994 by Peter.Jonson
Please try using
M/D/YYYY HH:NN:SS TT format

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #14995 by DeanCovey
Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #14996 by Peter.Jonson
If you are loading data into datetime field you have to make sure that your data is in standard ODBC format YYYY-MM-DD HH:NN:SS.FFF
You can use Date format function for it
www.etl-tools.com/wiki/aetle:transformation_functions:date?s []=format&s[]=date
If it is already in this format just leave as it is
Do not forget to get rid of leading and trailing spaces

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #14997 by DeanCovey
It's just a text file and I am trying to send to a SQL table datetime. i tried setting the SQL to date, not luck. I also tried a trim as suggested.

Please Log in or Create an account to join the conversation.