Show: Object Pascal C++
Display Preferences

System.SysUtils.DecodeDate

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

Personal tools
Translations