Languages
[Edit]
EN

MySQL - get current date

0 points
Created by:
Keisha-Acosta
260

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