System.TDateTime.operator ()

From RAD Studio API Documentation
Jump to: navigation, search

C++

__fastcall operator System::String() const;//<Date||Time||DateTime>String(smart)
__fastcall operator double() const {return Val;}
__fastcall operator int() const    {return (int)Val;}

Properties

Type Visibility Source Unit Parent
function public systdate.h System TDateTime

Description

Converts the TDateTime object.

int returns an int that is the integer conversion of the date portion of this TDateTime object. The resulting integer is the number of days that have passed since 12/30/1899.

double returns a double that represents this TDateTime object. The integral part of the double is the number of days that have passed since 12/30/1899. The fractional part is the time of day, represented as a fraction of 24 hours.

String returns a String object that is the string conversion of this TDateTime object. The conversion uses the format specified by the LongTimeFormat global variable of the TDateTime formatting variables. Change the format of how the string displays by changing the values of some of the date and time variables.

See Also