Returns a TDateTime that represents 12:00:00:00 AM on the first day of the week identified by a specified TDateTime.
function StartOfTheWeek(const AValue: TDateTime): TDateTime;
TDateTime StartOfTheWeek(const TDateTime AValue);
DateUtils
StartOfTheWeek returns the first expressible moment of the same week as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 0, changes the day to Monday, and returns the result.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|