We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Date format in Phalcon Model

I want to change the date format to dd-mm-yyy from existing yyyy-mm-dd. I am using Mysql. Changing date format in contoller is not an option as I want to send whole dataset into volt. Is it possible to change date format in view ? Otherwise any trick to return date from model into dd-mm-yyy format ?



24.2k

I can't figure out how to use get/set with model. Please post an example.