Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DateMonth

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the month from a time/date variable.

Note: Time/Date functions can only be used with dates between 1980 and 2035. You should check that the date you are using is valid with Cicode similar to the following:
IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END

Syntax

DateMonth(Time)

Time:

The time/date variable.

Return Value

The month of the year as an integer.

Date

Example

! If the current system date is 3rd November 1991;

Variable=DateMonth(TimeCurrent());

! Sets Variable to 11.

See Also

Time and Date Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in