Jump to content

PHP Dates


dunff2k

Recommended Posts

Hello I'm a newbie to Dates in PHP

I'm writing an application that queries a database for the objects added within the last 4 months and displays them ordered by month.

Would it be more beneficial to store the dateAdded field as a DATE in the mysql database and use the mysql date functions or as a VARCHAR and use the PHP functionality

Any advice would be appreciated

Paul
Link to comment
https://forums.phpfreaks.com/topic/32209-php-dates/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.