Current date in cloverleaf

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Current date in cloverleaf

  • Creator
    Topic
  • #53910
    Hina Siddiqui
    Participant

      This is the first time i am working on cloverleaf. And i would really appreciate your help.

      How can i declare current date in cloverleaf. I have the following logic.

      if(Integer.parseInt(strtmp.substring(0,4)) > currentYear)

      {

      getGuardian_Emp_Detail_out().getDetail(record_counter).setTermDate(“”);

      Please help me

    Viewing 2 reply threads
    • Author
      Replies
      • #79501
        Keith McLeod
        Participant

          You can make use of the clock command in tcl, if using tcl.

          clock format [clock scan now] -format “%Y%m%d”

          or if in a translate there are many @variables that get this info for you.

          @date, @now, @day, etc….

        • #79502
          Hina Siddiqui
          Participant

            I understood the clock temp variable. But how can we declare current date. Could you give me an example

            Thanks a lot

          • #79503

            Like this:

            Code:

            set dateTime [clock format [clock scan now] -format %Y%m%d%H%M%S]

            -- Max Drown (Infor)

        Viewing 2 reply threads
        • The forum ‘Cloverleaf’ is closed to new topics and replies.