Skip to main content

7.13.1 CONCAT_DATE_TOD

Function

Combine date DATE and time TOD and output the return value

  • If the input or output exceeds the range of the data type, the return value is 0

LD graphics

CONCAT_DATE_TOD

Parameter description

Interface variableDeclarationData typeDescription
DATEVARVar_DateDATEDate: year month day
TODVARVar_TodTODTime: hours minutes second
Function nameReturn valueDTDate + Time

Example

  • An LD example is shown in the following animation:

CONCAT_DATE_TODGIF

  • ST example is shown in the following code:
OUT:=CONCAT_DATE_TOD(DATEVAR:=dateVar,TODVAR:=todVar);