ServerDate function

Official Content
This documentation is valid for:

Returns a date from a unified source (common to all clients).

Syntax

ServerDate()

Type Returned:
Date

Scope

Objects: Procedure, Transaction, Web PanelPanel
Generators: .NET.NET Framework, Java

Description

The Today function returns the date where the code is running. Environments where there are "clients" (Web or Native Mobile applications) and "servers" (the Database or Application server) execute code on either side. Clients may not be synchronized, for example, leading to unsequenced date values.

The ServerDate function is intended to solve the problem by always returning the date of a given source. Usually, the source is the DBMS (date of the server your DBMS is running) but may be a Web Application Server too, depending on the implementation.

Note: The following warning is displayed when using the function in a Panel with the Connectivity Support property = Offline.

warning: spc0210: 'ServerDate()' not supported, using 'Date()' function instead.

See Also

TimeZone Support - General Considerations
ServerNow function
ServerTime function
Sysdate function
Systime function
Today function
GxRemove variable