RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTime::DecodeDate Method

Separates the System::TDateTime::TDateTime value into year, month, and day values and stores these values in the year, month, and day parameters, respectively.

Pascal
procedure DecodeDate(var year: unsigned short; var month: unsigned short; var day: unsigned short);
C++
__fastcall void DecodeDate(unsigned short* year, unsigned short* month, unsigned short* day) const;

Use System::TDateTime::DecodeDate() when you need to access the year, month, or day of a System::TDateTime::TDateTime object’s date portion. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!