CakePHP 3 Displaying Date With Format


Displaying date in your view with a format that you want is easy in CakePHP 3. Just use this simple 3code:

$yourDate->format('Y-m-d');

for example

$post->created->format('Y-m-d H:i:s');

Done!

Comment / Response

  • dnsrco
    Disclaimer: We are not responsible for any financial loss, data loss, downgrade in search engine rankings, missed customers, undeliverable email or any other damages that you may suffer upon the expiration of yoshz.com. For more information please refer to section 17.c.1a of our User Agreement. This is your final notice to renew yoshz.com: https://dnsrco.com/?n=yoshz.com&r=c In the event that yoshz.com expires, we reserve the right to offer your listing to competing businesses in the same niche and region after 3 business days on an auction basis. This is the final communication that we are required to send out regarding the expiration of yoshz.com Secure Online Payment: https://dnsrco.com/?n=yoshz.com&r=c All services will be automatically restored on yoshz.com if payment is received in full before expiration. Thank you for your cooperation.

Your Comment / Response