Currently I need to login into my website every month and update the date of the next event - the third saturday of every month.
There must be a way for php to help me do this less often.
I thought the smplest way would be for me to create an array of dates over the next 12 months: ie
(17th March, 21st April, 19th May... and so on)
And then pick from the array the first date which is greater than the current date.
$dates = array('17/03/2012', '21/04/2012', '19/05/2012');
//SET CURRENT DATE
$today = date("d.m.y");
But I'm not sure how I would do that?
Any help appreciated.