Skip to main content
VeloDB Cloud 26.x·Apache Doris 4.x (≤ 4.0 supported)·"Since X.Y" tags refer to Doris versionsversion mapping →

CURDATE,CURRENT_DATE

Description

Get the current date and return it as a DATE type.

This function is consistent with the curdate function in MySQL.

Aliases

  • current_date

Syntax

CURDATE()

Return Value

The current date, return value is of date type.

Examples

-- Get the current date
SELECT CURDATE();

+------------+
| CURDATE() |
+------------+
| 2019-12-20 |
+------------+