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

DateDay

Gets the day of the month from a time/date variable.

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

DateDay(Time)

Time:

The time/date variable.

Return Value

The day of the month as an integer.

Related Functions

Date

Example

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

See Also

Time/Date Functions