Field-Map Scripting

4.1.12.10 DaysInAMonth

DaysInAMonth function


Prototype:

function DaysInAMonth (Year, Month: integer): integer;

Description:

Returns the number of days during specific month of the year.

Syntax:

variable := DaysInAMonth(Year, Month);

Part

Description

variable

Variable declared as string

Year

Calendar year

Month

Number (1-12) of month during the year

Return value:

An integer value from 1 through 31 representing the number of days during specific month


Example:

ShowMessage(Variant2String(DaysInAMonth(2200,2)))

- previews the number of days during February 2200 (i.e., 28)



See also:                

Day; Month; Year; DecodeDate; DecodeDateExt; DecodeDateTimeExt; YearOf; MonthOf; DayOf; DaysInAMonth; StrToDateTime; DateToStr; DateTimeAsString; FormatElapsedTime; Date; Now; IncMonth; IncDay;