DTYear
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Get the year from the date stamp.
Inputs
Input |
Data Type |
Range | Unit | Default |
Description |
---|---|---|---|---|---|
Date |
DINT |
No range |
N/A |
No default |
Numerical stamp representing a date. |
Outputs
Output |
Data Type |
Range | Unit |
Description |
---|---|---|---|---|
Q |
DINT |
No range |
N/A |
Year of the date. |
ST Language
Q := DTYear (iDate);
See Also