EN
MySQL - get current date and time
0
points
In this article, we would like to show you how to get the current date and time in MySQL.
Quick solution:
SELECT NOW();
Practical example
In this example, we will display the current date and time as current_datetime
using NOW()
function.
Query:
SELECT NOW() AS 'current_datetime';
Result: