System.SysUtils.DecodeDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DecodeDate(const DateTime: TDateTime; var Year, Month, Day: Word);

C++

extern DELPHI_PACKAGE void __fastcall DecodeDate(const System::TDateTime DateTime, System::Word &Year, System::Word &Month, System::Word &Day);

Properties

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

Description

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

The DecodeDate procedure breaks the value specified as the Date parameter into Year, Month, and Day values. If the given TDateTime value has a negative (BC) year, the year, month, and day return parameters are all set to zero.

See Also


Code Examples