Function Block WEEKNUM

The Function Block WEEKNUM returns the calendar week.

Input DT

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

Output ISO-8601

The output returns the calendar week. The value ranges between 1 and 53.