Save Dates to Database

Your Date Format should be set correctly in your index.php file.

From here you can save dates into an ORM object like this:


$article->publishedDate = date($article->DBA->dateFormat." H:i:s");

Any dates that you return from the ORM will follow your localization date format set in index.php I.e. d/m/Y

Powered by ComboStrap