mysql get date from date time code example
Example 1: mysql get time from datetime
SELECT
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
Example 2: get date from now() mysql
You can use CURDATE()
SELECT
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
You can use CURDATE()