Forum Moderators: coopster
Here is what I need to do. Check for the current day. For example, say today is Wednesday. I need to then calculate the date for the previous Monday. My week runs from Monday - Sunday.
Then I can say the start date for the iCal function is on that Monday.
Then I need to say that okay, if today is Wed then the end date will not be this upcoming Sunday, but NEXT Sunday. That way I can say the end day is the second Sunday away.
Have been trying all day but can't get it working. Any thoughts?
Thanks!
I used the following code:
$endDate = strtotime("+2 Sundays, 9pm", "1222833600");
And it spits out the correct Sunday, but at 11pm not 9pm. If I move it to 11pm in the strtotime function it spits out the following monday at 1am.
Anyone know why ?