Mysql TIMESTAMP TO plain date number -
i need convert mysql timestamp 2014-01-01 10:10:10
20140101
in mysql query.
eg. .... ... some_mysql_function(created) = '20140101'
please note resulting number not seconds epoch. strinpping out time , -
mark.
try in query
date_format(timestamp_column,'%y%m%d')
Comments
Post a Comment