Official Content

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



Type Returned:


Objects: Procedure, Transaction, Web PanelPanel, Data Provider
Generators: .NET.NET Framework, JavaApple, Android, Angular


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

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant