The Function Block MONTH calculates the month of a date.
At the input, a date DT# can be specified. If no value is set, the current time is used.
The output MONTH returns the current month. The value ranges between 1 and 12.