Page 1 of 1

need logic for date transformation

Posted: Wed Apr 09, 2008 1:06 pm
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

Posted: Wed Apr 09, 2008 1:31 pm
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