Page 1 of 1

Default Date format

Posted: Mon Oct 24, 2016 3:27 pm
by Developer9
Hi,

I am using teradata table as my target ..I need to insert the date fields in the format "mm/dd/yyyy"

Code: Select all

dataset ----->xfm -->Teradata
While writing to dataset I used varchar and assigned "mm/dd/yyyy"-- I am able to write data but I need to load the date fields in date format

What is the derivation to use in the transformer stage ?

Please let me know your input

Thanks

Re: Default Date format

Posted: Mon Oct 24, 2016 9:43 pm
by chulett
StringToDate() with the appropriate format string, I would assume.

Posted: Mon Nov 14, 2016 7:26 pm
by abc123
When you wrote to the dataset, what data type did you write it as? You need to read it using the same data type. You can then manipulate the format downstream (if needed) using something like what Craig is suggesting.