GetMonth

This function evaluates to the integer number of the month of the given datetime.

Description

The month number, base 1, in units of "NONE".

Type

NUMERIC

Arguments

Type

Meaning

1

DATETIME

the datetime of any time within the month

Evaluation

The datetime argument; which may be specified symbolically, is converted into an actual datetime. Then, the number of the month in which the datetime is contained, is determined. This function requires that the specified datetime resolve to at least a partially specified datetime in the “Month day, year” format with the month specified.

Comments

As elsewhere in RiverWare, 24:00 hours is considered to be the day which is ending, and 00:00 hours is considered to be the day which is just beginning.

 
GetMonth(@"February 23, 1996")
 
2.000