DTMonth

 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 month 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

1 to 12

N/A

Month of the date.

Remarks

None

FBD Language Example

Not available.

FFLD Language Example

Not available.

IL Language Example

Not available.

ST Language Example

Q := DTMonth (iDate);

See Also