Show: Delphi C++
Display Preferences

System.SysUtils.DecodeDateFully

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DecodeDateFully(const DateTime: TDateTime; var Year, Month, Day, DOW: Word): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall DecodeDateFully(const System::TDateTime DateTime, System::Word &Year, System::Word &Month, System::Word &Day, System::Word &DOW);

Properties

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

Description

Returns Year, Month, and Day, and Day-of-Week values for a TDateTime value.

The DecodeDateFully procedure breaks the value specified as the Date parameter into Year, Month, Day, and DOW values. If Year is a leap year, the function return value is True; otherwise the function return value is False. If the given TDateTime value has a negative (BC) year, the return parameters are all set to zero.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance