Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use a date field to create a variable that separates the date values into Months.  For instance, a table showing enrollment status over the year (see below).

 


How To

Use the code below to create the calculated variable.  

...

 function main() {

   if (isNull(V1))  {

         return 14;   

   } else {

...

    var myMonth = V1.getMonth();

    return myMonth;

}

}