Navigation:  Advantage .NET Data Provider > AdsConnection Class > AdsConnection Properties >


Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Gets the current server time on an open connection.

public DateTime ServerTime {get;}


Retrieves the current time and date from the server via the Advantage Database Server. ServerTime is useful if the Advantage client application is running at a site that is in a different time zone than where the data is located and is being accessed by the Advantage Database Server. When Advantage is used in a WAN environment or is being used with the Advantage Internet Server, the Advantage client and Advantage server will often be located in different time zones. This API allows time, date, and timestamp fields to be populated with a consistent date and time, that is, the date and time of the server location.

Note The AdsConnection must be open when getting ServerTime.