Month Procedure

Version 7

Returns the current or specified date/time month (1-12).

Syntax

[ lMonth = ] Month ( [ dt ] )

The Month procedure syntax has the following parts:

Name

Type

Description

lMonth

Long

Return value: month between 1 and 12

dt

[Val] DateTime

Date time if given

Comments

If date time is not specified, current date time is used. 

Example

 

print Month()   ! prints current month "12"

print Month(dt) ! prints month of "dt"

See Also

Day, Year, Hour, Minute, Second, Weekday, DateTime Data Type