DTYear

 FunctionClosed 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.

Remarks

None

FBD Language Example

Not available.

FFLD Language Example

Not available.

IL Language Example

Not available.

ST Language Example

Q := DTYear (iDate);

See Also