System.DateUtils.IsValidDateDay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsValidDateDay(const AYear, ADayOfYear: Word): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsValidDateDay(const System::Word AYear, const System::Word ADayOfYear);

Properties

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

Description

Indicates whether a specified year and day of the year represent a valid date.

IsValidDateDay returns True if:

  • AYear falls in the range from 1 through 9999 inclusive.
  • ADay falls in the range from 1 through the number of days in the specified year.

Otherwise, IsValidDateDay returns False.

See Also


Code Examples