ServerDate Function

Official Content
This documentation is valid for:

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



Type Returned


The Today function returns the date where the code is running. Environments where there are "clients" (Windows Client-server, Web or Smart Device applications) and "servers" (the Database or Application server) execute code in 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.


The following warning is displayed when using the function in a Smart Device panel with the Connectivity support offline.

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


Objects: Procedure object, Transaction object, Web Panel object
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

See Also

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