PHP dates – add and subtract months…. really!
I needed to add and subtract just one month from a date in PHP. Sounds easy right… wrong! Doing this won’t work: Neither will this: …and there are a few other ways to do this but none of them will work. Users on many forums argue that this behaviour of returning the wrong date is […]