using the php date/time classes I'm trying to get certain specific days

EricCartmenez

New Member
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.CheersEDIT:So for example if we take the 2010-09-21 as the start date:\[code\]$start_date = new DateTime(20100921);\[/code\]Finding the current DATE of the next month (numerical representation) would be:\[code\]$start_date->modify('+1 month');\[/code\]However finding the current DAY of the next month (textual representation) is causing me more troubles.\[code\]This date is the third tuesday of this month - next month the third tuesday is the 19th\[/code\]
 
Back
Top