7.13.8 DAY_OF_WEEK
Function
Input date data of DATE type, and calculate the number of days in the weekly cycle to be output
LD graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN | Var_Date | DATE | Date |
| Function name | Return value | INT | Any integer type |
- If the input DATE is illegal, the return value is -1.
Example
- An LD example is shown in the following animation:

- ST example is shown in the following code:
OUT:=DAY_OF_WEEK(IN1);