Format all Date objects in CakePhp 3

0

In my database I have some fields with type Date. Therefore the data is stored in '2016-01-23' format. However, when I retrieve this data to display it in VIEW, it appears in '23 / 01/16 'format and needs to be left in '23 / 01/2016' format. I know I can use the $ array-> data-> format ('d / m / Y') method to get this result. However this would be very costly in terms of maintenance and productivity. Is there any way to format all Date type fields from ORM in one place?

    
asked by anonymous 08.02.2017 / 19:28

0 answers