Answers for "datetime mysql"

PHP
8

php mysql datetime

date("Y-m-d H:i:s")
Posted by: Guest on July-05-2019
3

mysql get time from datetime

SELECT 
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
Posted by: Guest on April-02-2020
5

mysql datetime

-- MySQL DATE Format: 'YYYY-MM-DD'
-- MySQL DATETIME Format: 'YYYY-MM-DD hh:mm:ss'
Posted by: Guest on June-07-2021

Browse Popular Code Answers by Language