Customer Portal

Conditionally transform date on sentinel value?

Comments 2

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    the easiest way is to use nullValue attribute on the metadata.
    Or, as you wrote, in Reformat:

    • you can use your code in transformation written in java

    • use following code with CTL2:
      	$0.avalue = iif(isnull($avalue) || $avalue == "99999999" , null, str2date($0.avalue,"yyyyMMdd"));

    Btw: fix the format - mm is minute, MM is month.
  • Avatar
    tpdi
    0
    Comment actions Permalink
    Ah! The nullValue attribute is much easier. Thanks!

Please sign in to leave a comment.