Skip to main content

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

SPLIT_DATE

Parameter description

Interface variableDeclarationData typeDescription
INVar_DateDATEDate type data
YEAROut_PutINTYear
MONTHOut_PutINTMonth
DAYOut_PutINTSomeday
  • If the input value is illegal, all output values are 0

Example

  • An LD example is shown in the following animation:

SPLIT_DATE_GIF

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