Navigation:  »No topics above this level«

TAdsSettings.DateFormat

Advantage TDataSet Descendant

Return to chapter overview

TAdsSettings

Specifies the date format. The date format must contain two or more occurrences of the letters D, M, and Y respectively (e.g., "MM-DD-YYYY"). The default DateFormat is set from the Delphi global ShortDateFormat. If Advantage does not recognize the format of the ShortDateFormat variable, the DateFormat property will default to ‘MM/DD/CCYY’.

Syntax

property DateFormat: String;

Description

DateFormat is a global setting that affects the behavior of dates throughout a program. This allows the programmer to control date formatting for applications.

This setting affects how the Advantage Database Server interprets all date strings. It also defines how all dates are passed back to the calling application. DateFormat can also be used to specify separators in the date format. For example, "DD/MM/YYYY" and "DD-MM-YYYY" are both valid date formats.