RAD Studio VCL Reference
SysUtils.DecodeDateFully Function

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

function DecodeDateFully(const DateTime: TDateTime; var Year: Word; var Month: Word; var Day: Word; var DOW: Word): Boolean;
Boolean DecodeDateFully(const TDateTime DateTime, Word Year, Word Month, Word Day, Word DOW);

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. 


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