Convert between date and unix timestamp: Difference between revisions

Jump to navigation Jump to search
m
Line 93: Line 93:


<pre>
<pre>
SELECT FROM_UNIXTIME(IF(`timestamp_column` = 0, NULL, `timestamp_column`, "%Y-%m-%d %h:%i:%s")  
SELECT FROM_UNIXTIME(IF(`timestamp_column` = 0, NULL, `timestamp_column`, "%Y-%m-%d %H:%i:%S")  
</pre>
</pre>


Anonymous user

Navigation menu