I'm developing CountDown
for a date.
What I want is to receive the next day of the month from the day of the week.
The problem is that it has to be PHP
.
Day of the week:
$dw = date( "w", $timestamp); ( 0 - domingo ... 6 - sabado )
Example: I want the next event on the day of the month on the day of the week 4 = Friday
This will be for infinite events ie every day during the week will appear an event.
Event1 - Monday
Event2 - Tuesday
etc etc ...
But for countdown
I need date by ano/mes/dia
So I have to turn the day of the week into the next day of the month when the day of the week is the event.
For example. There will be an event next Monday the 16th.
The only data I have is that the event is every Monday.
I want to find out the next day that is Monday