Month Function

Purpose

Returns an Integer specifying a whole number between 1 and 12, inclusive, representing the month of the year.

Syntax

Month(date)

date:Date exp

Description

The function Month() retunrs the month of a Date.

Example

OpenW 1

Local z As Date

z = HmsToTime(110000, 20, 4000)

Print z, Month(z)

Print Now, Month(Now)

Print Date, " ", Month(Date)

Print "12/12/1912", " ", Month(#12.12.1912#)

Print FileDateTime("c:\windows\notepad.exe"), Month(FileDateTime("c:\windows\notepad.exe"))

Remarks

See Also

CDate(), Date, Date$, DateAdd(), DateDiff(), DatePart(), DateSerial(), DateTime$(), DateToDmy, DateToDmyHms, DateValue(), Day(), DayNo(), DmyHmsToDate(), DmyToDate(), HmsToTime(), Hour(), IsDate(), Minute(), Month(), Now, Now$(), TimeSerial(), TimeToHms, TimeValue(), Second(), Week(), WeekDay(), Year()

{Created by Sjouke Hamstra; Last updated: 18/10/2014 by James Gaite}