RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.StartOfAYear Function

Returns a TDateTime that represents the first moment on the first day of a specified year.

Pascal
function StartOfAYear(const AYear: Word): TDateTime;
C++
TDateTime StartOfAYear(const Word AYear);

StartOfAYear returns the first expressible moment (January 1 at 12:00:00.000 AM) of the year specified by the AYear parameter. 

 

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