Investment Studio > Expressions > Functions > Date & Time > MONTH

integer month(date argument)

Returns the month encoded in the argument. The result is an integer ranging from 1 (January) to 12 (December).

Automatic type conversion allows the use of a date string as argument instead of an explicit date value.

Example

=month(35961)

and (assuming standard US date format settings)

=month("6/15/1998")

both equal 6.

See also date, datevalue, day, now, timevalue, today, year.