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:
xxxxxxxxxx
1
SELECT NOW();
In this example, we will display the current date and time as current_datetime
using NOW()
function.
Query:
xxxxxxxxxx
1
SELECT NOW() AS 'current_datetime';
Result:
