The Function Block DAY calculates the day of a date.
With DT, a date can be specified in DT#. If no value is set, the current time is used.
The output provides the current day of the date. This value ranges between 1 and 31.