Month

Description

Determines the month of a date value.

Syntax

Month ( date )

Argument

Description

date

The date from which you want the month

Returns

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

Examples

Example 1

This statement returns 1:

Month(2004-01-31)

Example 2

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