Reading List

PHP DateTime: Create, Compare and Format Dates Easily from The Valuable Dev RSS feed.

PHP DateTime: Create, Compare and Format Dates Easily

When I search and read code about time and date problems developers have, I noticed that a lot of people still use the old PHP functions like date(), time() or strtotime(). What about using the class DateTime instead? DateTime can do all the usual date and time operations you could ask for, and even more. Using DateTime can save a lot of time when you have to do simple, or more complex operations on dates.