This question already has an answer here:
- Convert date format yyyy-mm-dd => dd-mm-yyyy 14 answers
I have a column named "timestamp" in my DB with datatype timestamp
and standard CURRENT_TIMESTAMP
.
When I echo it (echo $row['timestamp'];
) i get this:
2016-01-18 21:06:37
2016-01-19 12:32:16
2016-01-19 20:52:41
But I want it to turn out like this:
2016-01-18
2016-01-19
2016-01-19
How should I do that? Strftime
or something?
</div>