Official Content

Returns the current date.

Syntax

Today()

Type Returned:
Date

Scope

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.

Samples

The following rule sets the current date value as the default date for an Order's date:

Default(OrderDate, Today());

See Also

Sysdate function
GxRemove variable







Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant