RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.StartOfAMonth Function

Returns a TDateTime that represents 12:00:00:00 AM on the first day of a specified month.

Pascal
function StartOfAMonth(const AYear: Word; const AMonth: Word): TDateTime;
C++
TDateTime StartOfAMonth(const Word AYear, const Word AMonth);

StartOfAMonth returns the first expressible moment (12:00:000 AM) of the first day of a specified month. 

The AYear parameter specifies the year of the desired month. 

The AMonth parameter specifies the month. It can range from 1 to 12. 

If the parameters do not specify a valid month, StartOfAMonth raises an EConvertError exception. 

 

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