CURDATE()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the current date in the currently active timezone.
USAGE
CURDATE()
DETAILS
CURDATE()
is a date-time function that returns the current date in the currently active timezone.
When called in string context, the return value is formatted as YYYY-MM-DD
.
When called in numeric context, the return value is formatted as YYYYMMDD
.
See UTC_
EXAMPLES
SELECT CURDATE();
+------------+
| CURDATE() |
+------------+
| 2020-11-06 |
+------------+
SELECT CURDATE()+0;
+-------------+
| CURDATE()+0 |
+-------------+
| 20201106 |
+-------------+