Files
doris/docs/en/sql-reference/sql-functions/date-time-functions/curdate.md
steadyBoy 5cc62fa166 [docs] fix document date-time-functions typo (#8053)
1. en: add convert_tz.md
2. en: fix curdate.md, the fix is to modify the title
3. en: add curtime.md
4. en: fix str_to_date.md, the fix is to modify the title
5. zh-CN: fix convert_tz.md, the fix is to modify the description
6. zh-CN: fix curdate.md, the fix is to modify the title
2022-03-02 10:07:44 +08:00

1.2 KiB

title, language
title language
curdate,current_date en

curdate,current_date

Description

Syntax

DATE CURDATE()

Get the current date and return it in Date type

example

mysql> SELECT CURDATE();
+------------+
| CURDATE()  |
+------------+
| 2019-12-20 |
+------------+

mysql> SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
|      20191220 |
+---------------+

keyword

CURDATE,CURRENT_DATE