System.Win.Registry.TRegistry.WriteDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteDate(const Name: string; Value: TDateTime);

C++

void __fastcall WriteDate(const System::UnicodeString Name, System::TDateTime Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

Stores a date value in a specifically named data value associated with the current key.

Call WriteDate to store a datetime value in a data value associated with the current key.

Name is a string containing the name of the data value in which to store data. If Name already exists, its current value is overwritten by WriteDate. If Name does not exist, it is created.

Value is a datetime value to store in the registry.

If WriteDate fails, an exception is raised, and the value is not written to the registry.

If successful, WriteDate stores a TDateTime value. The integral part of a TDateTime value is the number of days that have passed since 12/30/1899. The fractional part of a TDateTime value is the time of day.

See Also