user2610146
user2610146

Reputation: 179

Cakephp 3 Time format - removing hours

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

Answers (1)

When having a Time object you can do this

$timeObject->format('Y-m-d')

Upvotes: 1

Related Questions