| Description |
|
Returns the number of days in the specified month of the specified year.
|
| | Notes | Static methods are not methods of an object - they are simply class functions or procedures available at any time.
|
|
| Microsoft MSDN Links |
System
System.DateTime
|
|
|
| A simple example |
program Project1;
{$APPTYPE CONSOLE}
var
days : Integer;
begin
days := System.DateTime.DaysInMonth(2000, 2); // 2000 was a leap year
Console.WriteLine('Days in February 2000 = {0}', days.ToString);
Console.ReadLine;
end.
| | Show full unit code | Days in February 2000 = 29
|
| |
|
|
|