System.DateUtils.DecodeDateDay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DecodeDateDay(const AValue: TDateTime; out AYear, ADayOfYear: Word);

C++

extern DELPHI_PACKAGE void __fastcall DecodeDateDay(const System::TDateTime AValue, /* out */ System::Word &AYear, /* out */ System::Word &ADayOfYear);

Properties

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

Description

Returns the year and day of the year for a specified TDateTime.

DecodeDateDay returns the day of the year for a specified date/time value, along with the year in which that day occurs.

AValue is the date/time value about which you want information.

AYear returns the year that AValue represents.

ADayOfYear returns the day within AYear that AValue represents, where 1 is January 1.

See Also


Code Examples