Month Procedure |
Version 7 |
Returns the current or specified date/time month (1-12).
[ 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 |
If date time is not specified, current date time is used.
print Month() ! prints current month "12"
print Month(dt) ! prints month of "dt"
Day, Year, Hour, Minute, Second, Weekday, DateTime Data Type