Defining Logic > Functions > Calendar Functions > CalMonth

CalMonth

Note: the CalMonth function is available only in the Professional edition of Process Simulator.

The CalMonth() function corresponds to the month of the year you defined as part of the warm-up period or simulation begin date under simulation properties. Values returned by this function will be integers in the range of 1 to 12, inclusively. The function can be used in any logic. The function name must be followed by the pair of parentheses.

 

The following is an example of using the function:

If CalMonth()=12 Then

{

     <logic statements>

}


© 2016 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com