Function Block WEEK

The Function Block WEEK calculates the day of the week as a number.

Input DT

At the input, a date can be specified in DT#. If no value is set, it will calculate with the current time. The input is defined with DT#2016-03-25-22:12:00 or D#2016-03-25.

Output ISO-8601

The current day of the week is output at the output. The value ranges between 1 and 7.

Number Day of the Week
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
7 Sunday