IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Automatic Date formatting

    Posted 03/21/05 08:36 AM

    Originally posted by: SystemAdmin


    is there a trick to get this to work in 7.5? I have an input date format of DD MON and the output is formatted as YYMMDD. Currently I am getting ## for the year.

    Thanks.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: Automatic Date formatting

    Posted 03/21/05 11:36 PM

    Originally posted by: SystemAdmin


    Not sure about tricks but assuming you want to always use the current year (unless you have some other source for YY), in your output rule use the following:-

    = TODATETIME (Input + RIGHT (TEXT ( CURRENTDATE () ), 2) , "{DDMONYY}")

    Where Input is your DDMON field. Define your output field as format YYMMDD or YYMMDDHHMMSS etc whatever you need.

    Regards

    Tarun
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: Automatic Date formatting

    Posted 03/22/05 09:26 AM

    Originally posted by: SystemAdmin


    or....

    TODATETIME (Input + fromdatetime( CURRENTDATE () "YY") )
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange