I've got a month number from an array and put it in a variable.
Now i want to use the month to make the whole datestamp at the beginning or ending of the month.
But for the life of me, I can't figure out how to do that.
$startmonth = date("m", strtotime($date[1]));
$endmonth= date("m", strtotime($date[3]));
The startdate variable should be something like this: 2015-06-01
The enddate variable should be something like this: 2015-07-30