Reputation: 179
I wanted to as, hoc can i format time, from database table. Now i get:
2015-07-01 00:00:00
Question is, how use Cakephp3 goodies to have :
2015-07-01
I have tried examples from docs, but with no success.
Thank You.
Upvotes: 0
Views: 202
Reputation: 9614
When having a Time object you can do this
$timeObject->format('Y-m-d')
Upvotes: 1