Languages
[Edit]
EN

MySQL - get current date

0 points
Created by:
Keisha-Acosta
380

In this article, we would like to show you how to get the current date in MySQL.

Quick solution:

SELECT CURDATE();

 

Practical example

In this example, we will display the current date as current_date using CURDATE() function.

Query:

SELECT CURDATE() AS 'current_date';

Result:

MySQL - CURDATE() function result
MySQL - CURDATE() function result
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join