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);
|
||||||||
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;
© 2024 IFER-Monitoring and Mapping Solutions