CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions | VBAReference

Date and Time Functions

CitectVBA date and time functions let you make use of your computer's system time and date.

The date and time functions predefined in CitectVBA are:

Date function

Determines the current system date according to the setting of the computer's system time.

Date statement

Sets the current system date.

DateSerial function

Constructs a date value.

DateValue function

Calculates a date.

Day function

Calculates the day.

Hour function

Extracts the hours value from an expression (Time ).

Minute function

Extracts the minutes value from an expression (Time ).

Month function

Calculates the month.

Now function

Determines the current date and time according to the setting of the computer's system date and time.

Second function

Extracts the seconds value from an expression (Time ).

Time function

Determines the current time according to the setting of the computer's system time.

Time (statement)

Sets the current system time.

Timer event

Used to track elapsed time.

TimeSerial function

Constructs an time value.

TimeValue function

Calculates a time.

WeekDay function

Calculates the weekday value of a date.

Year function

Calculates the year.

Published June 2018