SysUtils.DecodeDate

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From SysUtils.pas

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


Unit: SysUtils

Type: procedure

Visibility: public

C++ Information

From SysUtils.hpp

	void __fastcall DecodeDate(System::TDateTime DateTime,
		unsigned short & Year,
		unsigned short & Month,
		unsigned short & Day);


Unit: SysUtils

Type: function

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 Samples


Personal tools
Translations
Newest Version