I am trying to get the date of the first of the month in PHP.
I found this page http://www.php.net/manual/en/datetime.formats.relative.php where it seems you can do 'first day of...' but I don't see how you specify this month.
I also found The first day of the current month in php using date_modify as DateTime object and in the second answer I see you can do
date('Y-m-01');
The latter looks simple, but I don't understand how it specifies the current month. If someone can explain this to me, and also explain the difference in the two methods, that would be a big help!