I have a little date problem in PHP.
When I made January 31 + 1 with this code
$newDate = date('Ym-d', strtotime('31-01-2016'.' + 1 month')); echo $newDate;
it gives me March 2, but I need to give me February 29,
I need to add 1 month and not 30 days.
ditto for all dates: e.g. January 01 + 1 month => February 1
January 29 + 1 month => February 29
January 30 + 1 month => February 29
January 31 + 1 month => February 29
thanks for the help
source share