1
0
-1

In composer you could use js moment functionality by calling "sfcInternal.moment". Is there a similar way to call moment in Maestro?

    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      Hi Stephen,

      moment.js is included in Maestro forms. It is on the window scope.

      So you just call moment in any rule in your form design. Or in an external JS library.

      Example:

      moment().format("MMM Do YY"); 
        CommentAdd your comment...
      1.  
        1
        0
        -1

        Okay, thanks heaps, got that working. (smile)

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi Stephen,

          It should be on the window object, so you should be able to access it directly as just moment(...)

            CommentAdd your comment...