System.Classes.TReader.ReadDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadDate: TDateTime;

C++

System::TDateTime __fastcall ReadDate(void);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

Reads and returns a value of the TDateTime type at the reader object's stream.

ReadDate is a helper method used by other reader methods to read a TDateTime type value at the current reader Position. ReadDate calls ReadValue to check whether the value-type indicator is vaDate, and then ReadDate calls Read to read a TDateTime type value and returns the retrieved value. Otherwise, ReadDate returns the stream position back before the value-type indicator, calls ReadInt64, and returns the retrieved value.

ReadDate advances the reader Position after the last byte it has read.

See Also