11.2CURRENT_DATE

Available inDSQL, PSQL, ESQL

TypeDATE

Syntax

  |CURRENT_DATE

CURRENT_DATE returns the current server date in the session time zone.

Note

Within a PSQL module (procedure, trigger or executable block), the value of CURRENT_DATE will remain constant every time it is read. If multiple modules call or trigger each other, the value will remain constant throughout the duration of the outermost module. If you need a progressing value in PSQL (e.g. to measure time intervals), use Section 11.20, “'TODAY'.

Examples

  |select current_date from rdb$database
  |-- returns e.g. 2011-10-03