Reputation: 831
wanted to have two columns separate in target table
YYYYMMDD
Format HHMMSS
Format.How can I populate in Expression Transformation? What is the expression used? Please guys, help me out.
I used
Upvotes: 0
Views: 238
Reputation: 8103
If your in_column
type is already date/time
then what you are using right now is almost correct, except use HH24MISS
instead of HHMISS
. Or use HH12MISS AM
.
If in_column
is a string
, the first convert it to a date/time
. Suppose in_column
is coming as 'Jan 24 2017 14:24:56'
then
v_in_column
as TO_DATE( in_column, 'MON DD
YYYY HH24:MI:SS' )
CTDATE
and
CTTIME
Upvotes: 1