I am trying to find the right string to modify a DateTime object. I have a recurring calendar object:
Currently finding 'this date of next month' is easy enough: $start_date->modify('+1 month');
However, I am also looking to find 'this day of next month' and 'this day of next year'.
Couldn't find the relevant strings. Cheers
EDIT:
So for example if we take the 2010-09-21 as the start date:
$start_date = new DateTime(20100921);
Finding the current DATE of the next month (numerical representation) would be:
$start_date->modify('+1 month');
However finding the current DAY of the next month (textual representation) is causing me more troubles.
This date is the third tuesday of this month - next month the third tuesday is the 19th