CONCAT_DT - Constructs a date and time value

Help Contents

Introduction

Constructs a date and time value from: Year, Month, Date, Hour, Minute, Seconds and Milliseconds.

Syntax

Informal Syntax:

CONCAT_DT(
  Year, Month, Date
  Hour, Minute, Second, Millisecond )

Formal Syntax:

CONCAT_DT(
  Year:=expression, Month:=expression, Date:=expression
  Hour:=expression, Minute:=expression, Second:=expression, Millisecond:=expression )

Parameters

ParameterTypeDescription
YEARANY_INTThe year value. The valid range of this parameter is 1601 to 9999
MONTHANY_INTThe month value. The valid range of this parameter is 1 to 12.
DATEANY_INTThe date value. The valid range of this parameter is 1 to 31.
HOURANY_INTThe hour value. The valid range of this parameter is 0 to 23.
MINUTEANY_INTThe minute value. The valid range of this parameter is 0 to 59.
SECONDANY_INTThe second value. The valid range of this parameter is 0 to 59.
MILLISECONDANY_INTThe millisecond value. The valid range of this parameter is 0 to 999.

Return Value

The function CONCAT_DT constructs a date and time value from the parameters.

Examples

ExampleReturn Value
CONCAT_DT( 2020, 8, 23, 11, 44, 0, 0 )D#2020-08-23-11:44:00.000

Standards Compliance

Table 36.4a - IEC 61131-3 Third Edition.

Further Information

Date and Time Functions

For other date and time functions.

Glossary

For the meaning of terms used in Fernhill SCADA.