Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql get time from datetime

SELECT 
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
 
PREVIOUS NEXT
Tagged: #mysql #time #datetime
ADD COMMENT
Topic
Name
4+6 =