Advantage TDataSet Descendant
Retrieves the Julian date representation from the given field.
function AdsGetJulian( strFieldName : String ) : Longint;
|
strFieldName |
Name of the field to retrieve. |
CAUTION It is recommended that this Advantage extended method not be used. Please read the Caution About Extended Methods for more information. The suggested native Delphi method to use instead is: TField.AsDateTime. See your Delphi documentation for more information about this native Delphi method.
AdsGetJulian can be used to retrieve the Julian date representation of a date from date, short date, ModTime fields, and timestamp fields. A Julian date is a signed long integer representation of the number of days since January 1, 4713 B.C.
dtDate := AdsTable1.FieldByName( ‘BirthDay’ ).AsDateTime;