Cicode Programming Reference > Cicode Function Categories > Time and Date Functions Introduction > DateMonth

DateMonth

Gets the month from a time/date variable.

Note: Time/date functions can only be used with dates from 1980 to 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.

Related Functions

Date

Example

! If the current system date is 3rd November 1991;
Variable=DateMonth(TimeCurrent());
! Sets Variable to 11.

See Also

Time/Date Functions