Function Block MONTH

The Function Block MONTH calculates the month of a date.

Input DT

At the input, a date DT# can be specified. If no value is set, the current time is used.

Output MONTH

The output MONTH returns the current month. The value ranges between 1 and 12.