DATE ConstantsΒΆ

Use DATE constants for dates.

Syntax:

d# <date declaration>

As an alternative, you can use the following styles of syntax instead of d#: D#, date, DATE.

You must define the date declaration in the format <year-month-day>.

CODESYS treats DATE (D) values internally just like DWORD. The time is given in seconds, beginning on 01 January 1970 at 00:00.

Examples:

DATE#1996-05-06 d#1972-03-29

See also