System.DateUtils.DayOfTheYear

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DayOfTheYear(const AValue: TDateTime): Word;

C++

extern DELPHI_PACKAGE System::Word __fastcall DayOfTheYear(const System::TDateTime AValue);

Properties

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

Description

Returns the number of days between a specified TDateTime value and December 31 of the previous year.

Call DayOfTheYear to obtain the ordinal position of a TDateTime value's day within its year. Thus, a TDateTime value that refers to January 1 generates a result of 1, dates on January 2 return 2, dates on February 1 return 32, and so on.

See Also


Code Examples