Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.

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

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



107.2k
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)