RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.ReplaceDate Function

Replaces the date portion of a TDateTime value with a specified date.

Pascal
procedure ReplaceDate(var DateTime: TDateTime; const NewDate: TDateTime);
C++
ReplaceDate(TDateTime DateTime, const TDateTime NewDate);

SysUtils

ReplaceDate changes the value of the DateTime parameter so that it has the same date as the NewDate parameter. The time portion of DateTime remains the same. ReplaceDate makes any necessary adjustments for negative dates (before 1900). 

 

DecodeDate 

EncodeDate 

ReplaceTime 

IncMonth 

RecodeDateDay 

RecodeDateHour 

RecodeDateMillisecond 

RecodeDateMinute 

RecodeDateMonth 

RecodeDateSecond 

RecodeDateYear 

RecodeDate

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