RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.DecodeDateFully Function

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

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

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!