Replaces the day of the month for a specified TDateTime value.
function RecodeDay(const AValue: TDateTime; const ADay: Word): TDateTime;
TDateTime RecodeDay(const TDateTime AValue, const Word ADay);
DateUtils
Call RecodeDay to convert the date/time value specified by AValue with the value obtained by changing the day of the month to ADay. Legal values for ADay depend on the month represented by AValue. (For example, if AValue is in January, ADay can range from 1 to 31; if AValue is in February, ADay can range from 1 to 28 or 1 to 29, depending on the year; and so on.)
If the value provided for ADay does not represent a valid day in the month identified by AValue, RecodeDay raises an EConvertError exception.
ReplaceDate
RecodeDateMilliSecond
RecodeDateSecond
RecodeDateMinute
RecodeDateHour
RecodeDateMonth
RecodeDateYear
EConvertError
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|