7.13.5 SPLIT_DATE
Function
Split the DATE date type data into three integer types YEAR, MONTH, and DAY and return it
LD graphics

Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN | Var_Date | DATE | Date type data |
| YEAR | Out_Put | INT | Year |
| MONTH | Out_Put | INT | Month |
| DAY | Out_Put | INT | Someday |
- If the input value is illegal, all output values are 0
Example
- An LD example is shown in the following animation:

- ST example is shown in the following code:
SPLIT_DATE(
IN:=IN1,
YEAR=>OUT,
MONTH=>OUT2,
DAY=>OUT3
);