System.SysUtils.DecodeDateFully

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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