Returns the current date.
Today()
Type Returned:
Date
Object: Procedure, Transaction, Web Panel, Work Panel
Notes:
- In the iSeries environment, this function returns the start date of the job, and not the System Date. This allows running a job with a date different from the current one, and using it in the program.
- To use the actual System Date, see the Sysdate() function
- In PC environment returns de System Date, so Today and Sysdate functions are equivalent.
The following rule sets the current date value as the default date for an Order's date:
Default(OrderDate, Today());
Sysdate function
GxRemove variable