Returns a date from a unified source (common to all clients).
Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, 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.
TimeZone Support - General Considerations