CakePHP 3 Changes To Date/Time Formatting

Written by James McDonald

June 12, 2016

The new date objects have different formatting strings http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details

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

The old ones here don’t work http://php.net/manual/en/function.date.php as the datetime helper have been rewritten.

 

 

0 Comments

Submit a Comment

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

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...