System.DateUtils.RecodeDay
Delphi
function RecodeDay(const AValue: TDateTime; const ADay: Word): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall RecodeDay(const System::TDateTime AValue, const System::Word ADay);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Replaces the day of the month for a specified TDateTime value.
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 specifies January, ADay can range from 1 through 31, if AValue specifies February, ADay can range from 1 through 28 or 1 to 29, depending on the year, and so on.) ADay can also be RecodeLeaveFieldAsIs.
If the value provided for ADay does not represent a valid day in the month identified by AValue, RecodeDay raises an EConvertError exception.
See Also
- System.SysUtils.ReplaceDate
- System.DateUtils.RecodeMilliSecond
- System.DateUtils.RecodeSecond
- System.DateUtils.RecodeMinute
- System.DateUtils.RecodeHour
- System.DateUtils.RecodeMonth
- System.DateUtils.RecodeYear
- System.DateUtils.DayOf
- System.DateUtils.RecodeTime
- System.SysUtils.EConvertError
- Date and Time Support