need logic for date transformation

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pattemk
Participant
Posts: 84
Joined: Wed May 16, 2007 4:04 pm

need logic for date transformation

Post by pattemk »

i know it is a dumd question but i am having a hard time to transform the date modifications like "2007-04-08 00:00:00"(timestamp) to "20070408"(can be either varchar or any data type).

please help

thanks
Sudhindra_ps
Participant
Posts: 45
Joined: Thu Aug 31, 2006 3:13 am
Location: Bangalore

Post by Sudhindra_ps »

hi,

If you are sure that input column is of "Timestamp" data type then you could make use of TimeStamp to string conversion function in Transformer stage or Modifier stage.
Ex: TimestampToString(InputColumn,"%yyyy%mm%dd")

Thanks & regards
Sudhindra P S
Post Reply