Table of Contents

CONCAT_DATE_TOD

Function name

CONCAT_DATE_TOD

ST call

PROGRAM CONCAT_DATE_TOD_DEMO
   VAR
     DT1: DT;
        DATE1: DATE;
        TOD1: TOD;
  END_VAR
 DT1:= CONCAT_DATE_TOD(IN1:=DATE1, IN2:=TOD1);
END_PROGRAM

Description

Links together the input date and time of day values to a single datetime value.

Inputs

InputTypeDescription
IN1 DATEInput value, date
IN2 TOD Input value, time of day

Outputs

OutputTypeDescription
DT Output value, datetime

Application example