CDate
Last updated
CDate (FB)FUNCTION_BLOCK CDate
Conversion of the date components day/month/year into a date (YYYYMMDD)

datYYYYMMDD
DATE
Date in the format YYYYMMDD
iDD
INT
1
Specification of the day in the format DD (1..31)
iMM
INT
1
Specification of the month in the format MM (1..12)
iYYYY
INT
1970
Specification of the year in the format YYYY (1970..2099)
This function block is used to form the date datYYYYMMDD from the individual components iDD, iMM, and iYYYY. The logical input limits of the individual components are monitored and corrected if necessary. This block can, for example, be used for input in a visualization.
InOut:
Input Const
iDD
INT
1
Input Const
iMM
INT
1
Input Const
iYYYY
INT
1970
Output
datYYYYMMDD
DATE
Last updated

