RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.RecodeMonth Function

Replaces the month of the year for a specified TDateTime value.

Pascal
function RecodeMonth(const AValue: TDateTime; const AMonth: Word): TDateTime;
C++
TDateTime RecodeMonth(const TDateTime AValue, const Word AMonth);

DateUtils

Call RecodeMonth to convert the date/time value specified by AValue with the value obtained by changing the month of the year to AMonth. Legal values for AMonth range from 1 to 12. 

If the value provided for AMonth does not represent a valid month, or if the change results in an invalid day of the month (for example trying to change Jan 31 to Feb 31), RecodeMonth raises an EConvertError exception. 

 

ReplaceDate 

RecodeDateMilliSecond 

RecodeDateSecond 

RecodeDateMinute 

RecodeDateHour 

RecodeDateDay 

RecodeDateYear 

MonthOf 

EConvertError

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