Show: Delphi C++
Display Preferences

System.DateUtils.DaysInAMonth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DaysInAMonth(const AYear, AMonth: Word): Word;

C++

extern DELPHI_PACKAGE System::Word __fastcall DaysInAMonth(const System::Word AYear, const System::Word AMonth);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns the number of days in a specified month of a specified year.

Call DaysInAMonth to obtain the number of days in the specified month of the specified year.

AYear is a year from 1 through 9999 (inclusive).

AMonth is a month from 1 through 12 (inclusive).

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance