CakePHP 3 Changes To Date/Time Formatting

Written by James McDonald

June 12, 2016

The new date objects have different formatting strings

$this->Time->format($assigned_part->start_time, 'h:mm')
$this->Time->format($mtg->date, 'eeee MMMM d')

The old ones here don’t work as the datetime helper have been rewritten.




Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…