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

Working with dates in phalcon

Hello, I would like to know if there is a way to work with dates in phalcon, I want to add 30 days to a date stored in mysql.

https://php.net/manual/es/datetime.add.php

In the Php manual I found this. Is there any alternative in Phalcon?



145.0k
Accepted
answer

The same, use mysql and php functions, phalcon is working on php, so anything working in php = working in phalcon, anything working in mysql = working most likely in phql(sometimes you need to write/use custom function like date_interval from incubator)