8 Replies Latest reply on Feb 22, 2021 7:03 AM by Prasenjit Saha

    Adding or sybtracting units from a date is not working for me in Infa MFT

    Rangareddy Y Active Member

      Hi Team,

      i tried as per below document and same is not working. Please find the below code which i tried. Can you please suggest me how to add or subtract units from a date.

       

      // here i am trying to subtract one day from sysdate

      <timestamp version="1.0">

      <format outputVariable="sysdatenextdate" pattern="${CurrentDate(&apos;MM-dd&apos;)}" dayOfMonth="-1" />

      </timestamp>

       

      // here i am trying to add one day to sysdate

      <timestamp version="1.0">

      <format outputVariable="sysdatenextdate" pattern="${CurrentDate(&apos;MM-dd&apos;)}" dayOfMonth="+1" />

      </timestamp>