Month

Description

Determines the month of a date value.

Syntax

Month ( date )

Argument

Description

date

The date from which you want the month


Return value

Integer.

Returns an integer (1 to 12) whose value is the month portion of date. If date is null, Month returns null.

Examples

This statement returns 1:

Month(2004-01-31)

These statements store in start_month the month entered in the SingleLineEdit sle_start_date:

integer start_month
start_month = Month(date(sle_start_date.Text))

See also

Day

Date

Year

Month method for DataWindows in the section called “Month” in DataWindow Reference.