Updated on 2026-11-06 GMT+08:00

current_date

The current_date function is used to return the current date value. The return value format is yyyy-mm-dd.

Similar function: getdate. The getdate function returns the current system time. The return value format is yyyy-mm-dd hh:mi:ss.

Syntax

current_date()

Parameters

None

Return Values

Returns a date value of type DATE, in the format yyyy-mm-dd.

Example Code

select current_date();

Returns 2023-08-16.