contents.gifprev1.gifnext1.gif

DMONTH() - Month

Calculates the month from a date number (serial number).

Returns

Long value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
long
lDayNumber
Day serial number
16 bit DLL declarations

PowerBuilder Function declaration

function long DMONTH(long lDayNumber) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function DMONTH lib "IFL16" (ByVal lDayNumber As Long) As Long

32 bit DLL declarations

PowerBuilder Function declaration

function long DMONTH(long lDayNumber) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function DMONTH lib "IFL32" (ByVal lDayNumber As Long) As Long

Example:

lDayNumber
=
35000

Result: 10 (month)