Return a date from a unified source (common to all clients).
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)
TimeZone Support - General Considerations