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
1.2 KiB
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