System.SysUtils.ReplaceDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReplaceDate(var DateTime: TDateTime; const NewDate: TDateTime);

C++

extern DELPHI_PACKAGE void __fastcall ReplaceDate(System::TDateTime &DateTime, const System::TDateTime NewDate);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

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

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).

See Also