I'm trying to get the current start date of the month and current end date of the month.
It needs to change for each month, so for example for this month I need:
$startMonth = 2014-02-01
$endMonth = 2014-02-28
I'm aware of the mktime PHP page but I can't get my head around it: http://uk3.php.net/mktime
I also need the start day and end day of the current year:
$startYear = 2014-01-01
$endYear = 2014-12-31
I need it in the above format, I can get the previous months using:
$previousmonthStart = date("Y-m-d", mktime(0, 0, 0, date("m"), 0, date("Y")));
$previousmonthEnd = date("Y-m-d", mktime(0, 0, 0, date("m")-1, 1, date("Y")));
Just need to know what changes what.