CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > Minute

Minute

Calculates the minute value from the given time argument passed to the function.

Syntax

Minute(Time)

Time:

A string or expression that can represent a time value. This includes and combination of time literals, numbers that look like times, strings that look like times, and times from functions.

Return Value

Returns an integer between 0 and 59 representing the minute of the parameter (Time).

Related Functions

Hour | Second

Example

Dim varMyMin, varMyTime
varMyTime = "08:04:23 PM"
varMyMin = Minute(varMyTime)
' stores minutes value.