RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.StartOfTheMonth Function

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

Pascal
function StartOfTheMonth(const AValue: TDateTime): TDateTime;
C++
TDateTime StartOfTheMonth(const TDateTime AValue);

DateUtils

StartOfTheMonth returns the first expressible moment of the same month as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 0, changes the day to 1, and returns the result. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!