Month()

Syntax

Result = Month(Date)
Description
Returns the month value of the specified date.

Parameters

Date The date from which to extract the month.

Return value

Returns the month component of the date, -1 otherwise. The result is always between 1 and 12.

Example

  Debug Month(Date(2002, 10, 3, 0, 0, 0))  ; Outputs '10'.

See Also

FormatDate(), Year(), Day(), Hour(), Minute(), Second()

Supported OS

All

<- Minute() - Date Index - ParseDate() ->