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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -