I am trying to figure out on how to set my dates to every 15th and end of month only...what i\'m getting so far is only +15 days from my current date.. current date = date t
You can use mktime with 0 and 15 as value for the day:
$a = date("m-d", mktime(0,0,0,$month,0)); $b = date("m-d", mktime(0,0,0,$month,15));
This will give you the last day of the previous month and the 15. of $month